Eray Karatay
Eray Karatay
Ideally `hyper` should support this feature rather than `axum` since supporting it in `axum` would require having its own server implementation. Hopefully this will be resolved with `hyper-1.0` release.
> I went ahead and published it (yes under the MIT license that's entirely permitted) https://crates.io/crates/rewrk Say the word and I'll transfer ownership, the intention is by no means to...
> What is the performance difference from this change? @Noah-Kennedy Depends. You gotta test it on your own machine.
Have you tried using a `Handle` and then calling [`Handle::listening`](https://docs.rs/axum-server/latest/axum_server/struct.Handle.html#method.listening) method?
Oh okay, got it. In that case you could create a custom struct that implements [`Accept`](https://docs.rs/axum-server/latest/axum_server/accept/trait.Accept.html). Get the local address from io stream and add it to extensions using [`AddExtension`](https://docs.rs/tower-http/latest/tower_http/add_extension/struct.AddExtension.html)...