Add example showing how to use hyper's low level API (#2338)

This commit is contained in:
David Pedersen
2023-11-23 13:39:01 +01:00
committed by GitHub
parent ff9764574c
commit 20862d42f5
3 changed files with 142 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
[package]
name = "example-serve-with-hyper"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
axum = { path = "../../axum" }
hyper = { version = "1.0", features = [] }
hyper-util = { version = "0.1", features = ["tokio", "server-auto", "http1"] }
tokio = { version = "1.0", features = ["full"] }
tower = { version = "0.4", features = ["util"] }