Roblox / rs-consul

This crate provides access to a set of strongly typed apis to interact with consul (https://www.consul.io/)
MIT License
35 stars 23 forks source link

Unable build an instance of the Consul client with a custom HTTP connector #44

Closed LeonHartley closed 1 month ago

LeonHartley commented 5 months 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.

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