Skip to main content

tower_layer

Macro tower_layer 

Source
macro_rules! tower_layer {
    ($layer:expr) => { ... };
}
Expand description

Macro to ergonomically wrap a Tower layer for use with Actix.

use actix_tower::prelude::*;
use actix_web::App;

let app = App::new()
    .wrap(tower_layer!(tower_http::trace::TraceLayer::new_for_http()));