what about typed methods?

This commit is contained in:
David Pedersen
2022-02-18 11:53:42 +01:00
parent d3bcf7778d
commit cc1f989467
5 changed files with 337 additions and 283 deletions
+4 -1
View File
@@ -37,7 +37,10 @@ async fn main() {
let app = Router::new()
.fallback(static_files_service)
.route("/sse", get(sse_handler))
.layer(TraceLayer::new_for_http());
.layer(
TraceLayer::new_for_http()
.make_span_with(tower_http::trace::DefaultMakeSpan::new().include_headers(true)),
);
// run it
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));