1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 15:07:42 +02:00

docs(web): unmention try_init_service

This commit is contained in:
Rob Ede
2024-08-18 14:33:28 +01:00
parent 4303dd8c37
commit 78ac5cf482
6 changed files with 11 additions and 14 deletions

View File

@ -17,7 +17,7 @@ async fn main() -> io::Result<()> {
ext.insert(42u32);
})
.finish(|req: Request| async move {
info!("{:?}", req);
info!("{req:?}");
let mut res = Response::build(StatusCode::OK);
res.insert_header(("x-head", HeaderValue::from_static("dummy value!")));