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

Method maybeWriteHeader

hlog/internal/mutil/writer_proxy.go:80–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func (b *basicWriter) maybeWriteHeader() {
81 if !b.wroteHeader {
82 b.WriteHeader(http.StatusOK)
83 }
84}
85
86func (b *basicWriter) Status() int {
87 return b.code

Callers 1

ReadFromMethod · 0.80

Calls 1

WriteHeaderMethod · 0.95

Tested by

no test coverage detected