MCPcopy
hub / github.com/go-chi/chi / Write

Method Write

middleware/compress.go:318–324  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

316}
317
318func (cw *compressResponseWriter) Write(p []byte) (int, error) {
319 if !cw.wroteHeader {
320 cw.WriteHeader(http.StatusOK)
321 }
322
323 return cw.writer().Write(p)
324}
325
326func (cw *compressResponseWriter) writer() io.Writer {
327 if cw.compressible {

Callers

nothing calls this directly

Calls 3

WriteHeaderMethod · 0.95
writerMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected