MCPcopy
hub / github.com/cortesi/devd / Header

Method Header

responselogger.go:53–55  ·  view source on GitHub ↗

Header returns the header map that will be sent by WriteHeader. Changing the header after a call to WriteHeader (or Write) has no effect.

()

Source from the content-addressed store, hash-verified

51// Changing the header after a call to WriteHeader (or Write) has
52// no effect.
53func (rl *ResponseLogWriter) Header() http.Header {
54 return rl.Resp.Header()
55}
56
57// Write writes the data to the connection as part of an HTTP reply.
58// If WriteHeader has not yet been called, Write calls WriteHeader(http.StatusOK)

Callers 15

logCodeMethod · 0.95
WriteHeaderMethod · 0.80
WrapHandlerMethod · 0.80
ServeTemplateMethod · 0.80
TestReverseProxyFunction · 0.80
TestReverseProxyQueryFunction · 0.80
ServeHTTPContextMethod · 0.80
ServeScriptMethod · 0.80
TestServeFileContentTypeFunction · 0.80
TestServeContentFunction · 0.80
serveContentFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestReverseProxyFunction · 0.64
TestReverseProxyQueryFunction · 0.64
TestServeFileContentTypeFunction · 0.64
TestServeContentFunction · 0.64