package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev

# Functions

GetOriginal goes through the chain of wrapped http.ResponseWriter objects and returns the original http.ResponseWriter object provided to the first request handler in the filter chain.
WrapForHTTP1Or2 accepts a user-provided decorator of an "inner" http.responseWriter object and potentially wraps the user-provided decorator with a new http.ResponseWriter object that implements http.CloseNotifier, http.Flusher, and/or http.Hijacker by delegating to the user-provided decorator (if it implements the relevant method) or the inner http.ResponseWriter (otherwise), so that the returned http.ResponseWriter object implements the same subset of those interfaces as the inner http.ResponseWriter.

# Structs

FakeResponseWriter implements http.ResponseWriter, it is used for testing purpose only.
For HTTP2 an http.ResponseWriter object implements http.Flusher and http.CloseNotifier.
For HTTP/1.x an http.ResponseWriter object implements http.Flusher, http.CloseNotifier and http.Hijacker.

# Interfaces

CloseNotifierFlusher is a combination of http.CloseNotifier and http.Flusher This applies to both http/1.x and http2 requests.
UserProvidedDecorator represensts a user (client that uses this package) provided decorator that wraps an inner http.ResponseWriter object.