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

Method WriteHeader

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

Source from the content-addressed store, hash-verified

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

Callers 1

ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected