pub fn method() -> impl Filter + Copy
Extract the Method from the request.
Method
This never rejects a request.
use warp::Filter; let route = warp::method() .map(|method| { format!("You sent a {} request!", method) });