warp::filters::method

Function method_is

source
fn method_is<F>(func: F) -> impl Filter<Extract = (), Error = Rejection> + Copy
where F: Fn() -> &'static Method + Copy,