1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

Actix Web

This commit is contained in:
Rob Ede
2022-02-06 08:13:24 +00:00
parent 120d33057a
commit 8ae47c8cda
16 changed files with 26 additions and 29 deletions

View File

@ -9,9 +9,8 @@ curl --unix-socket /tmp/actix-uds.socket http://localhost/
Hello world!
```
Although this will only one thread for handling incoming connections
according to the
[documentation](https://actix.github.io/actix-web/actix_web/struct.HttpServer.html#method.bind_uds).
Although this will only one thread for handling incoming connections
according to the [documentation](https://actix.github.io/actix-web/actix_web/struct.HttpServer.html#method.bind_uds).
And it does not delete the socket file (`/tmp/actix-uds.socket`) when stopping
the server, so it will fail to start next time you run it unless you delete

View File

@ -12,7 +12,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
// enable logger - always register actix-web Logger middleware last
// enable logger - always register Actix Web Logger middleware last
.wrap(middleware::Logger::default())
.service(
web::resource("/index.html")