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