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