Documentation
¶
Index ¶
- func Intercept(h http.Handler) web.Handler
- func Resolve(h web.Handler, eh web.ErrorHandlerFunc) http.Handler
- type Interceptor
- type WriteInterceptor
- func (m *WriteInterceptor) CloseNotify(original httpsnoop.CloseNotifyFunc) <-chan bool
- func (m *WriteInterceptor) Error() web.Error
- func (m *WriteInterceptor) Flush(original httpsnoop.FlushFunc)
- func (m *WriteInterceptor) Header(original httpsnoop.HeaderFunc) http.Header
- func (m *WriteInterceptor) Hijack(original httpsnoop.HijackFunc) (net.Conn, *bufio.ReadWriter, error)
- func (m *WriteInterceptor) Push(original httpsnoop.PushFunc, target string, opts *http.PushOptions) error
- func (m *WriteInterceptor) ReadFrom(original httpsnoop.ReadFromFunc, src io.Reader) (int64, error)
- func (m *WriteInterceptor) Write(original httpsnoop.WriteFunc, b []byte) (int, error)
- func (m *WriteInterceptor) WriteHeader(original httpsnoop.WriteHeaderFunc, code int)
- func (m *WriteInterceptor) Writer() http.ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
func (*Interceptor) TryServeHTTP ¶
func (m *Interceptor) TryServeHTTP(w http.ResponseWriter, r *http.Request) error
type WriteInterceptor ¶
type WriteInterceptor struct {
// contains filtered or unexported fields
}
func NewWriter ¶
func NewWriter(w http.ResponseWriter) *WriteInterceptor
func (*WriteInterceptor) CloseNotify ¶
func (m *WriteInterceptor) CloseNotify(original httpsnoop.CloseNotifyFunc) <-chan bool
func (*WriteInterceptor) Error ¶
func (m *WriteInterceptor) Error() web.Error
func (*WriteInterceptor) Flush ¶
func (m *WriteInterceptor) Flush(original httpsnoop.FlushFunc)
func (*WriteInterceptor) Header ¶
func (m *WriteInterceptor) Header(original httpsnoop.HeaderFunc) http.Header
func (*WriteInterceptor) Hijack ¶
func (m *WriteInterceptor) Hijack(original httpsnoop.HijackFunc) (net.Conn, *bufio.ReadWriter, error)
func (*WriteInterceptor) Push ¶
func (m *WriteInterceptor) Push(original httpsnoop.PushFunc, target string, opts *http.PushOptions) error
func (*WriteInterceptor) ReadFrom ¶
func (m *WriteInterceptor) ReadFrom(original httpsnoop.ReadFromFunc, src io.Reader) (int64, error)
func (*WriteInterceptor) WriteHeader ¶
func (m *WriteInterceptor) WriteHeader(original httpsnoop.WriteHeaderFunc, code int)
func (*WriteInterceptor) Writer ¶
func (m *WriteInterceptor) Writer() http.ResponseWriter
Click to show internal directories.
Click to hide internal directories.