Documentation ¶
Overview ¶
Package method provides utilities for working with request methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVerifier ¶
func NewVerifier(method string) (verify.RequestVerifier, error)
NewVerifier returns a new method verifier.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher is a conditional evaluator of request methods to be used in filters that take conditionals.
func (*Matcher) MatchRequest ¶
MatchRequest retuns true if m.method matches the request method.
Click to show internal directories.
Click to hide internal directories.