Package ionrw contains a http.ResponseWriter implementation
InterceptorMiddleware is a middleware that changes the request ResponseWriter with this custom implementation
ResponseWriter is a custom implementation of http.ResponseWriter that supports registering callbacks, that are called before writing the final response.
Interceptor returns or creates a *ResponseWriter associated with the passed http.ResponseWriter and *http.Request
New creates a new *ResponseWriter based on the passed http.ResponseWriter and *http.Request
AddPrecondition adds a http.HandlerFunc that will be called before writing headers to the response.
Size returns the amount of bytes written to this ResponseWriter body.
Write writes the bytes passed to this ResponseWriter, but before calls all the preconditions registered.
WriteHeader writes a header to the ResponseWriter, but before calls all the preconditions registered.
Written returns if this ResponseWriter have been already written.