intercept

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("Not Implemented")
)

Functions

func Intercept

func Intercept(h http.Handler) web.Handler

func Resolve

func Resolve(h web.Handler, eh web.ErrorHandlerFunc) http.Handler

Types

type DummyWriter added in v0.19.0

type DummyWriter struct {
	// contains filtered or unexported fields
}

func (*DummyWriter) Error added in v0.19.2

func (dw *DummyWriter) Error() error

func (*DummyWriter) Header added in v0.19.0

func (dw *DummyWriter) Header() http.Header

func (*DummyWriter) Status added in v0.19.0

func (dw *DummyWriter) Status() int

func (*DummyWriter) TryServeHTTP added in v0.19.0

func (dw *DummyWriter) TryServeHTTP(w http.ResponseWriter, r *http.Request) error

func (*DummyWriter) Write added in v0.19.0

func (dw *DummyWriter) Write(b []byte) (int, error)

func (*DummyWriter) WriteHeader added in v0.19.0

func (dw *DummyWriter) WriteHeader(code int)

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, method string) *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 (*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) Write

func (m *WriteInterceptor) Write(original httpsnoop.WriteFunc, b []byte) (int, error)

func (*WriteInterceptor) WriteHeader

func (m *WriteInterceptor) WriteHeader(original httpsnoop.WriteHeaderFunc, code int)

func (*WriteInterceptor) Writer

func (m *WriteInterceptor) Writer() http.ResponseWriter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL