Documentation ¶
Index ¶
- Variables
- func AcceptJSON(h http.Handler) http.Handler
- func CORS(h http.Handler) http.Handler
- func NOOP(w http.ResponseWriter, r *http.Request)
- func PutSecureBrowserHeaders(h http.Handler) http.Handler
- func RequestID(h http.Handler) http.Handler
- type Client
- type Pipeline
- func (p Pipeline) And(n ...Plug) Pipeline
- func (p Pipeline) DELETE(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) GET(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) POST(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PUT(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) Pass(h http.HandlerFunc) http.Handler
- func (p Pipeline) Path(method, path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathDELETE(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathGET(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathPOST(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathPUT(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) Prefix(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) Re(exp string, method string, f func(w http.ResponseWriter, r *http.Request)) Plug
- type Plug
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &http.Client{}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.