-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
A-docsArea: documentation.Area: documentation.
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
alexliesenfeld and stephenlacy
Metadata
Metadata
Assignees
Labels
A-docsArea: documentation.Area: documentation.