MCPcopy Index your code
hub / github.com/dnote/dnote / WriteHeader

Method WriteHeader

pkg/server/middleware/logging.go:34–37  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

32}
33
34func (w *logResponseWriter) WriteHeader(code int) {
35 w.statusCode = code
36 w.ResponseWriter.WriteHeader(code)
37}
38
39// logging is a logging middleware
40func Logging(inner http.Handler) http.HandlerFunc {

Callers 15

startCommonTestServerFunction · 0.80
TestSignInFunction · 0.80
TestSignOutFunction · 0.80
TestRateLimitedTransportFunction · 0.80
respondWithSessionFunction · 0.80
respondJSONFunction · 0.80
V3ShowMethod · 0.80
V3LogoutMethod · 0.80
IndexMethod · 0.80
NotFoundMethod · 0.80
TestGuestOnlyFunction · 0.80
TestAuthFunction · 0.80

Calls

no outgoing calls

Tested by 10

startCommonTestServerFunction · 0.64
TestSignInFunction · 0.64
TestSignOutFunction · 0.64
TestRateLimitedTransportFunction · 0.64
TestGuestOnlyFunction · 0.64
TestAuthFunction · 0.64
TestTokenAuthFunction · 0.64
TestWithAccountFunction · 0.64
TestLimitFunction · 0.64
TestLimit_DifferentIPsFunction · 0.64