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

Struct httpFancyWriter

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

httpFancyWriter is a HTTP writer that additionally satisfies http.Flusher, http.Hijacker, and io.ReaderFrom. It exists for the common case of wrapping the http.ResponseWriter that package http gives you, in order to make the proxied object support the full method set of the proxied object.

Source from the content-addressed store, hash-verified

188// of wrapping the http.ResponseWriter that package http gives you, in order to
189// make the proxied object support the full method set of the proxied object.
190type httpFancyWriter struct {
191 basicWriter
192}
193
194func (f *httpFancyWriter) Flush() {
195 f.wroteHeader = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected