Closed
Description
I have looked through the following:
- https://hyper.rs/guides/1/upgrading/
- https://github.com/hyperium/hyper/blob/master/CHANGELOG.md
- https://github.com/hyperium/hyper/blob/master/examples
- https://github.com/hyperium/hyper-util/tree/master/examples
None of these fully explain how to write the equivalent of a 0.14 Server
with hyper 1.0
The upgrading guide points us towards https://docs.rs/hyper-util/latest/hyper_util/server/conn/auto/struct.Builder.html but then its not clear how to actually use that.
I suspect the best solution here would be to just add a Server
example to hyper-util examples directory? Currently there is only a client example.
For reference our usage of hyper is just to provide a very simple interface for accessing and configuring metrics of a service:
https://github.com/shotover/shotover-proxy/blob/0e8c2b00566616387d2f79d7f48dcdc59660785d/shotover/src/observability/mod.rs#L60-L112