MCPcopy Create free account
hub / github.com/php/frankenphp / NewRecorder

Function NewRecorder

recorder_test.go:57–63  ·  view source on GitHub ↗

NewRecorder returns an initialized ResponseRecorder.

()

Source from the content-addressed store, hash-verified

55
56// NewRecorder returns an initialized ResponseRecorder.
57func NewRecorder() *ResponseRecorder {
58 return &ResponseRecorder{
59 HeaderMap: make(http.Header),
60 Body: new(bytes.Buffer),
61 Code: 200,
62 }
63}
64
65// DefaultRemoteAddr is the default remote address to return in RemoteAddr if
66// an explicit DefaultRemoteAddr isn't set on ResponseRecorder.

Callers 1

testEarlyHintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected