MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WriteHeader

Method WriteHeader

pkg/middlewares/http/logging.go:51–54  ·  view source on GitHub ↗

WriteHeader captures the status code

(code int)

Source from the content-addressed store, hash-verified

49
50// WriteHeader captures the status code
51func (lrw *loggingResponseWriter) WriteHeader(code int) {
52 lrw.statusCode = code
53 lrw.ResponseWriter.WriteHeader(code)
54}

Calls

no outgoing calls