pub fn put() -> impl Filter<Extract = (), Error = Rejection> + Copy
Create a Filter that requires the request method to be PUT.
Filter
PUT
use warp::Filter; let put_only = warp::put().map(warp::reply);