MCPcopy
hub / github.com/jhaals/yopass / WriteHeader

Method WriteHeader

pkg/server/server.go:777–780  ·  view source on GitHub ↗

WriteHeader implements http.ResponseWriter

(code int)

Source from the content-addressed store, hash-verified

775
776// WriteHeader implements http.ResponseWriter
777func (rw *statusCodeRecorder) WriteHeader(code int) {
778 rw.ResponseWriter.WriteHeader(code)
779 rw.statusCode = code
780}
781
782// Flush implements http.Flusher so the wrapper does not hide the underlying
783// writer's streaming capability from handlers.

Callers 4

jsonErrorFunction · 0.45
deleteSecretMethod · 0.45
healthHandlerMethod · 0.45
readyHandlerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected