MCPcopy Index your code
hub / github.com/dreamsofcode-io/nethttp / WriteHeader

Method WriteHeader

middleware/logging.go:14–17  ·  view source on GitHub ↗
(statusCode int)

Source from the content-addressed store, hash-verified

12}
13
14func (w *wrappedWriter) WriteHeader(statusCode int) {
15 w.ResponseWriter.WriteHeader(statusCode)
16 w.statusCode = statusCode
17}
18
19func Logging(next http.Handler) http.Handler {
20 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 7

writeUnauthedFunction · 0.80
EnsureAdminFunction · 0.80
CreateMethod · 0.80
FindByIDMethod · 0.80
CreateMethod · 0.80
CreateMethod · 0.80
FindByIDMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected