warp::filters::method

Function delete

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

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

ยงExample

use warp::Filter;

let delete_only = warp::delete().map(warp::reply);