Function warp::filters::method::v2::head

source ·
pub fn head() -> impl Filter<Extract = (), Error = Rejection> + 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);