MCPcopy
hub / github.com/rs/zerolog / WriteHeader

Method WriteHeader

hlog/internal/mutil/writer_proxy.go:58–64  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

56}
57
58func (b *basicWriter) WriteHeader(code int) {
59 if !b.wroteHeader {
60 b.code = code
61 b.wroteHeader = true
62 b.ResponseWriter.WriteHeader(code)
63 }
64}
65
66func (b *basicWriter) Write(buf []byte) (int, error) {
67 b.WriteHeader(http.StatusOK)

Callers 4

WriteMethod · 0.95
maybeWriteHeaderMethod · 0.95
TestEtagHandlerFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestEtagHandlerFunction · 0.64