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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user