Skip to main content

Query

Function Query 

Source
pub fn Query() -> impl Guard
Expand description

Creates a guard that matches the QUERY request method.

ยงExamples

The route in this example will only respond to QUERY requests.

use actix_web::{guard, web, HttpResponse};

web::route()
    .guard(guard::Query())
    .to(|| HttpResponse::Ok());