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

Struct basicWriter

hlog/internal/mutil/writer_proxy.go:50–56  ·  view source on GitHub ↗

basicWriter wraps a http.ResponseWriter that implements the minimal http.ResponseWriter interface.

Source from the content-addressed store, hash-verified

48// basicWriter wraps a http.ResponseWriter that implements the minimal
49// http.ResponseWriter interface.
50type basicWriter struct {
51 http.ResponseWriter
52 wroteHeader bool
53 code int
54 bytes int
55 tee io.Writer
56}
57
58func (b *basicWriter) WriteHeader(code int) {
59 if !b.wroteHeader {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected