Documentation ¶
Index ¶
- func Elapsed(what string) func()
- func EnrichPathParams(r *http.Request, params map[string]string)
- func EnrichRequestBody(r *http.Request) error
- func EnrichRequestWithMuxRoute(r *http.Request, route *mux.Route)
- func EnrichRule(req *http.Request, r *rule.Rule)
- func ExtractMiddleware(r *http.Request, name string) (rule.MiddlewareSpec, bool)
- func ExtractPathParams(r *http.Request) (map[string]string, bool)
- func ExtractRequestBody(r *http.Request) (io.ReadCloser, bool)
- func ExtractRule(r *http.Request) (*rule.Rule, bool)
- type Middleware
- type MiddlewareInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichRequestBody ¶
func EnrichRequestWithMuxRoute ¶ added in v0.6.26
func ExtractMiddleware ¶
func ExtractRequestBody ¶
func ExtractRequestBody(r *http.Request) (io.ReadCloser, bool)
Types ¶
type Middleware ¶
type Middleware interface { Info() *MiddlewareInfo ServeHTTP(rw http.ResponseWriter, req *http.Request) }
type MiddlewareInfo ¶
Click to show internal directories.
Click to hide internal directories.