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

Struct http2FancyWriter

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

http2FancyWriter is a HTTP2 writer that additionally satisfies http.Flusher, 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

231// of wrapping the http.ResponseWriter that package http gives you, in order to
232// make the proxied object support the full method set of the proxied object.
233type http2FancyWriter struct {
234 basicWriter
235}
236
237func (f *http2FancyWriter) Flush() {
238 f.wroteHeader = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected