1
0
mirror of https://github.com/actix/examples synced 2024-12-18 08:23:10 +01:00
examples/basics/README.md
Kelly Thomas Kline 7ecbb5449c
Correct path
2018-05-20 18:22:37 -07:00

23 lines
786 B
Markdown

# basics
## Usage
### server
```bash
cd examples/basics
cargo run
# Started http server: 127.0.0.1:8080
```
### web client
- [http://localhost:8080/](http://localhost:8080/static/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/favicon](http://localhost:8080/static/favicon.htmicol)
- [http://localhost:8080/welcome](http://localhost:8080/static/welcome.html)
- [http://localhost:8080/notexit](http://localhost:8080/static/404.html) display 404 page
- [http://localhost:8080/error](http://localhost:8080/error) Panic after request