warp::filters::method

Function patch

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

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

ยงExample

use warp::Filter;

let patch_only = warp::patch().map(warp::reply);