2018-01-06 15:43:59 +00:00
|
|
|
# basics
|
2017-12-30 15:50:17 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
### server
|
|
|
|
|
|
|
|
```bash
|
2018-01-06 15:43:59 +00:00
|
|
|
cd actix-web/examples/basics
|
2017-12-30 15:50:17 +00:00
|
|
|
cargo run
|
|
|
|
# Started http server: 127.0.0.1:8080
|
|
|
|
```
|
|
|
|
|
|
|
|
### web client
|
|
|
|
|
|
|
|
- [http://localhost:8080/index.html](http://localhost:8080/index.html)
|
|
|
|
- [http://localhost:8080/async/bob](http://localhost:8080/async/bob)
|
|
|
|
- [http://localhost:8080/user/bob/](http://localhost:8080/user/bob/) plain/text download
|
|
|
|
- [http://localhost:8080/test](http://localhost:8080/test) (return status switch GET or POST or other)
|
|
|
|
- [http://localhost:8080/static/index.html](http://localhost:8080/static/index.html)
|