heart

Function head

Source
pub fn head() -> impl Filter + Copy
Expand description

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

ยงExample

use warp::Filter;

let head_only = warp::head().map(warp::reply);