Lines Matching defs:http2responseWriterState
6416 type http2responseWriterState struct { struct
6418 stream *http2stream
6419 req *Request
6420 conn *http2serverConn
6423 bw *bufio.Writer // writing to a chunkWriter{this *responseWriterState}
6426 handlerHeader Header // nil until called
6427 snapHeader Header // snapshot of handlerHeader at WriteHeader time
6428 trailers []string // set in writeChunk
6429 status int // status code passed to WriteHeader
6430 …ader bool // WriteHeader called (explicitly or implicitly). Not necessarily sent to user yet.
6431 sentHeader bool // have we sent the header frame?
6432 handlerDone bool // handler has finished
6434 sentContentLen int64 // non-zero if handler set a Content-Length header
6435 wroteBytes int64
6437 closeNotifierMu sync.Mutex // guards closeNotifierCh
6438 closeNotifierCh chan bool // nil until first used
6453 func (rws *http2responseWriterState) hasTrailers() bool { return len(rws.trailers) > 0 }
6455 func (rws *http2responseWriterState) hasNonemptyTrailers() bool {
6467 func (rws *http2responseWriterState) declareTrailer(k string) {
6485 func (rws *http2responseWriterState) writeChunk(p []byte) (n int, err error) {
6624 func (rws *http2responseWriterState) promoteUndeclaredTrailers() {
6778 func (rws *http2responseWriterState) writeHeader(code int) {