Add example showing how to proxy reqwest::Response (#2138)

This commit is contained in:
David Pedersen
2023-08-02 08:15:47 +00:00
committed by GitHub
parent 6416a4784b
commit 5b89f1dfaa
2 changed files with 93 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
[package]
name = "example-reqwest-response"
version = "0.1.0"
edition = "2021"
publish = false
[dependencies]
axum = { path = "../../axum" }
reqwest = { version = "0.11", features = ["stream"] }
tokio = { version = "1.0", features = ["full"] }
tokio-stream = "0.1"
tower-http = { version = "0.4", features = ["trace"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }