-
SummaryHello! I was able to make use of the tower However, I can't seem to find a way to create a Axum TestServer that also applies path normalization. This code snippet: let router = Router::new();
let app = NormalizePathLayer::trim_trailing_slash().layer(router);
let app = ServiceExt::<axum::extract::Request>::into_make_service(app);
let server = TestServer::new(app).unwrap(); fails to compile with the following error:
I understand what the error message is saying but I'm not sure what to do about it. Any help would be welcome! axum version0.7.5 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I believe you want to use Router::layer instead. |
Beta Was this translation helpful? Give feedback.
-
@agersant I think this should be fixed in axum-test 15.7.0: JosephLenton/axum-test@b7f3ea3 |
Beta Was this translation helpful? Give feedback.
@agersant I think this should be fixed in axum-test 15.7.0: JosephLenton/axum-test@b7f3ea3