Function actix_web::web::trace

source ·
pub fn trace() -> Route
Expand description

Creates a new route with TRACE method guard.

§Examples

In this example, one TRACE /{project_id} route is set up:

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

let app = App::new().service(
    web::resource("/{project_id}")
         .route(web::trace().to(|| HttpResponse::Ok()))

);