pub fn Patch() -> impl Guard
Expand description
Creates a guard that matches the PATCH
request method.
§Examples
The route in this example will only respond to PATCH
requests.
use actix_web::{guard, web, HttpResponse};
web::route()
.guard(guard::Patch())
.to(|| HttpResponse::Ok());