1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +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

@ -3,11 +3,9 @@
Demonstrates how to shutdown the web server in a couple of ways:
1. remotely, via http request
- Created in response to actix/actix-web#1315
2. sending a SIGINT signal to the server (control-c)
- actix-server natively supports SIGINT
- Created in response to actix/actix-web#1315
1. sending a SIGINT signal to the server (control-c)
- actix-server natively supports SIGINT
## Usage
@ -24,6 +22,6 @@ cargo run --bin shutdown-server
### Available Routes
- [GET /hello](http://localhost:8080/hello)
- Regular hello world route
- Regular hello world route
- [POST /stop](http://localhost:8080/stop)
- Calling this will shutdown the server and exit
- Calling this will shutdown the server and exit