Function warp::filters::method::v2::options [−][src]
pub fn options(
) -> impl Filter<Extract = (), Error = Rejection> + Copy
Create a Filter
that requires the request method to be OPTIONS
.
Example
use warp::Filter; let options_only = warp::options().map(warp::reply);