warp::filters::method

Function put

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

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

ยงExample

use warp::Filter;

let put_only = warp::put().map(warp::reply);