github.com/blend/go-sdk@v1.20220411.3/web/response_writer.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package web 9 10 import ( 11 "io" 12 "net/http" 13 ) 14 15 // ResponseWriter is a super-type of http.ResponseWriter that includes 16 // the StatusCode and ContentLength for the request 17 type ResponseWriter interface { 18 http.Flusher 19 http.ResponseWriter 20 io.Closer 21 StatusCode() int 22 ContentLength() int 23 InnerResponse() http.ResponseWriter 24 }