mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 14:49:20 +02:00
update to latest actix-net
This commit is contained in:
@ -34,6 +34,7 @@ fn main() -> io::Result<()> {
|
||||
)
|
||||
}
|
||||
})
|
||||
.tcp()
|
||||
})?
|
||||
.run()
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ fn main() -> io::Result<()> {
|
||||
|
||||
Server::build()
|
||||
.bind("echo", "127.0.0.1:8080", || {
|
||||
HttpService::build().finish(handle_request)
|
||||
HttpService::build().finish(handle_request).tcp()
|
||||
})?
|
||||
.run()
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ fn main() -> io::Result<()> {
|
||||
res.header("x-head", HeaderValue::from_static("dummy value!"));
|
||||
future::ok::<_, ()>(res.body("Hello world!"))
|
||||
})
|
||||
.tcp()
|
||||
})?
|
||||
.run()
|
||||
}
|
||||
|
Reference in New Issue
Block a user