1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/basics/README.md

21 lines
706 B
Markdown
Raw Normal View History

# basics
## Usage
### server
```bash
cd actix-web/examples/basics
cargo run
# Started http server: 127.0.0.1:8080
```
### web client
2018-04-14 21:04:12 +02:00
- [http://localhost:8080/index.html](http://localhost:8080/index.html) - open welcome.html
- [http://localhost:8080/async/bob](http://localhost:8080/async/bob) - display "Hello 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)
2018-04-14 21:04:12 +02:00
- [http://localhost:8080/static/welcome.html](http://localhost:8080/static/welcome.html) - open welcome.html
- [http://localhost:8080/notexit](http://localhost:8080/notexit) - display 404 page