MCPcopy Create free account
hub / github.com/goadesign/goa / WriteHeader

Method WriteHeader

http/middleware/debug.go:115–118  ·  view source on GitHub ↗

WriteHeader records the status and sends an HTTP response header with status code.

(s int)

Source from the content-addressed store, hash-verified

113
114// WriteHeader records the status and sends an HTTP response header with status code.
115func (r *responseDupper) WriteHeader(s int) {
116 r.Status = s
117 r.ResponseWriter.WriteHeader(s)
118}
119
120// Hijack supports the http.Hijacker interface.
121func (r *responseDupper) Hijack() (net.Conn, *bufio.ReadWriter, error) {

Callers 2

ErrorEncoderFunction · 0.45
HandleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected