MCPcopy Create free account
hub / github.com/pace/bricks / WriteHeader

Method WriteHeader

http/middleware/metrics.go:87–90  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

85}
86
87func (w *statusWriter) WriteHeader(status int) {
88 w.status = status
89 w.ResponseWriter.WriteHeader(status)
90}
91
92func (w *statusWriter) Write(b []byte) (int, error) {
93 if w.status == 0 {

Callers 7

mainFunction · 0.45
GetTestHandlerFunction · 0.45
OKMethod · 0.45
TestRoundTripperRaceFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestRoundTripperRaceFunction · 0.36