Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2020 Changes in this version + func Wrap(w http.ResponseWriter, hooks Hooks) http.ResponseWriter + type CloseNotifyFunc func() <-chan bool + type FlushFunc func() + type HeaderFunc func() http.Header + type HijackFunc func() (net.Conn, *bufio.ReadWriter, error) + type Hooks struct + CloseNotify func(CloseNotifyFunc) CloseNotifyFunc + Flush func(FlushFunc) FlushFunc + Header func(HeaderFunc) HeaderFunc + Hijack func(HijackFunc) HijackFunc + Push func(PushFunc) PushFunc + ReadFrom func(ReadFromFunc) ReadFromFunc + Write func(WriteFunc) WriteFunc + WriteHeader func(WriteHeaderFunc) WriteHeaderFunc + type Metrics struct + Code int + Duration time.Duration + Written int64 + func CaptureMetrics(hnd http.Handler, w http.ResponseWriter, r *http.Request) Metrics + func CaptureMetricsFn(w http.ResponseWriter, fn func(http.ResponseWriter)) Metrics + type PushFunc func(target string, opts *http.PushOptions) error + type ReadFromFunc func(src io.Reader) (int64, error) + type WriteFunc func(b []byte) (int, error) + type WriteHeaderFunc func(code int)