Documentation ¶
Overview ¶
Package methods implements a custom predicate to match routes based on the http method in request
It supports multiple http methods, with case insensitive input ¶
Examples:
// matches GET request example1: Methods("GET") -> "http://example.org"; // matches GET or POST request example1: Methods("GET", "post") -> "http://example.org";
Index ¶
Constants ¶
View Source
const Name = predicates.MethodsName
Name is the predicate name Deprecated, use predicates.MethodsName instead
Variables ¶
View Source
var ErrInvalidArgumentType = errors.New("only string values are allowed")
View Source
var ErrInvalidArgumentsCount = errors.New("at least one method should be specified")
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.