warp::filters::method

Function post

source
pub fn post() -> impl Filter<Extract = (), Error = Rejection> + Copy
Expand description

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

ยงExample

use warp::Filter;

let post_only = warp::post().map(warp::reply);