Expand description
HTTP Method filters.
The filters deal with the HTTP Method part of a request. Several here will
match the request Method, and if not matched, will reject the request
with a 405 Method Not Allowed.
There is also warp::method(), which never rejects
a request, and just extracts the method to be used in your filter chains.
Functionsยง
- delete
- Create a
Filterthat requires the request method to beDELETE. - get
- Create a
Filterthat requires the request method to beGET. - head
- Create a
Filterthat requires the request method to beHEAD. - method
- Extract the
Methodfrom the request. - method_
is ๐ - options
- Create a
Filterthat requires the request method to beOPTIONS. - patch
- Create a
Filterthat requires the request method to bePATCH. - post
- Create a
Filterthat requires the request method to bePOST. - put
- Create a
Filterthat requires the request method to bePUT.