pub fn Connect() -> impl GuardExpand description
Creates a guard that matches the CONNECT request method.
ยงExamples
The route in this example will only respond to CONNECT requests.
use actix_web::{guard, web, HttpResponse};
web::route()
.guard(guard::Connect())
.to(|| HttpResponse::Ok());