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
+4
View File
@@ -66,6 +66,10 @@ path = "src/tls_client_auth/server.rs"
name = "tls-client-auth-client"
path = "src/tls_client_auth/client.rs"
[[bin]]
name = "tower-server"
path = "src/tower/server.rs"
[[bin]]
name = "multiplex-server"
path = "src/multiplex/server.rs"