Lines Matching defs:WriteHeader
18 // Code is the HTTP response code set by WriteHeader.
20 // Note that if a Handler never calls WriteHeader or Write,
67 // writeHeader writes a header if it was not written yet and
74 func (rw *ResponseRecorder) writeHeader(b []byte, str string) {
93 rw.WriteHeader(200)
98 rw.writeHeader(buf, "")
107 rw.writeHeader(nil, str)
114 // WriteHeader sets rw.Code. After it is called, changing rw.Header
116 func (rw *ResponseRecorder) WriteHeader(code int) {
141 rw.WriteHeader(200)