Function actix_web::guard::Put

source ·
pub fn Put() -> impl Guard
Expand description

Creates a guard that matches the PUT request method.

§Examples

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

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

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