MCPcopy Index your code
hub / github.com/moby/moby / WriteHeader

Method WriteHeader

pkg/authorization/response.go:72–80  ·  view source on GitHub ↗

WriteHeader stores the http status code

(s int)

Source from the content-addressed store, hash-verified

70
71// WriteHeader stores the http status code
72func (rm *responseModifier) WriteHeader(s int) {
73 // Use original request if hijacked
74 if rm.hijacked {
75 rm.rw.WriteHeader(s)
76 return
77 }
78
79 rm.statusCode = s
80}
81
82// Header returns the internal http header
83func (rm *responseModifier) Header() http.Header {

Callers 15

TestTLSCloseWriterFunction · 0.80
mainFunction · 0.80
setupSuiteFunction · 0.80
TestNewResponseModifierFunction · 0.80
TestResponseModifierFunction · 0.80
FlushAllMethod · 0.80
ServeHTTPMethod · 0.80
writeTarFromLayerFunction · 0.80
writeResponseFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestTLSCloseWriterFunction · 0.64
setupSuiteFunction · 0.64
TestNewResponseModifierFunction · 0.64
TestResponseModifierFunction · 0.64
ServeHTTPMethod · 0.64
writeResponseFunction · 0.64
TestV1EndpointValidateFunction · 0.64
ServeHTTPMethod · 0.64