Module warp::filters::method[][src]

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

Create a Filter that requires the request method to be DELETE.

Create a Filter that requires the request method to be GET.

Create a Filter that requires the request method to be HEAD.

Extract the Method from the request.

Create a Filter that requires the request method to be OPTIONS.

Create a Filter that requires the request method to be PATCH.

Create a Filter that requires the request method to be POST.

Create a Filter that requires the request method to be PUT.