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