Add tower server example (#375)

Note that this also adds `impl From<Status> for http::Response<BoxBody>`
in order to make writing middleware which can return an error much
easier.
This commit is contained in:
Kaleb Elwert
2020-06-22 12:04:02 -04:00
committed by GitHub
parent 54d7a7af6b
commit 80e90e3b5d
3 changed files with 98 additions and 0 deletions
+8
View File
@@ -94,6 +94,14 @@ $ cargo run --bin tls-server
$ cargo run --bin health-server
```
## Tower Middleware
### Server
```bash
$ cargo run --bin tower-server
```
## Autoreloading Server
### Server