MCPcopy Index your code
hub / github.com/php/frankenphp / Header

Method Header

recorder_test.go:73–80  ·  view source on GitHub ↗

Header implements http.ResponseWriter. It returns the response headers to mutate within a handler. To test the headers that were written after a handler completes, use the Result method and see the returned Response value's Header.

()

Source from the content-addressed store, hash-verified

71// written after a handler completes, use the Result method and see
72// the returned Response value's Header.
73func (rw *ResponseRecorder) Header() http.Header {
74 m := rw.HeaderMap
75 if m == nil {
76 m = make(http.Header)
77 rw.HeaderMap = m
78 }
79 return m
80}
81
82// writeHeader writes a header if it was not written yet and
83// detects Content-Type if needed.

Callers 5

writeHeaderMethod · 0.95
testEarlyHintsFunction · 0.80
ServeHTTPFunction · 0.80
addHeaderFunction · 0.80
go_write_headersFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected