Closed LeonHartley closed 1 month ago
While attempting to use turmoil with this Consul client, we noticed that you can't override the hyper HTTP connector that gets used when building the hyper client.
turmoil
It'd be nice if we could override the whole process of building the HTTP client, and not just the builder, so we can use this library with turmoil, e.g: https://github.com/Roblox/rs-consul/blob/e18ce70d7c5d2fab99a3d8b32cd892a0db8a7769/src/lib.rs#L255-L256
Turmoil example, using hyper: https://github.com/tokio-rs/turmoil/blob/main/examples/axum/src/main.rs#L57
While attempting to use
turmoil
with this Consul client, we noticed that you can't override the hyper HTTP connector that gets used when building the hyper client.It'd be nice if we could override the whole process of building the HTTP client, and not just the builder, so we can use this library with turmoil, e.g: https://github.com/Roblox/rs-consul/blob/e18ce70d7c5d2fab99a3d8b32cd892a0db8a7769/src/lib.rs#L255-L256
Turmoil example, using hyper: https://github.com/tokio-rs/turmoil/blob/main/examples/axum/src/main.rs#L57