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

Method Tee

middleware/wrap_writer.go:61–61  ·  view source on GitHub ↗

Tee causes the response body to be written to the given io.Writer in addition to proxying the writes through. Only one io.Writer can be tee'd to at once: setting a second one will overwrite the first. Writes will be sent to the proxy before being written to this io.Writer. It is illegal for the tee'

(io.Writer)

Source from the content-addressed store, hash-verified

59 // io.Writer. It is illegal for the tee'd writer to be modified
60 // concurrently with writes.
61 Tee(io.Writer)
62 // Unwrap returns the original proxied target.
63 Unwrap() http.ResponseWriter
64 // Discard causes all writes to the original ResponseWriter be discarded,

Implementers 1

basicWritermiddleware/wrap_writer.go

Calls

no outgoing calls