hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.08k stars 1.55k forks source link

Need an examples of http2 client for hyper #3604

Closed niranjankhare closed 3 months ago

niranjankhare commented 3 months ago

The examples don't seem to include good examples of http2 clients, especially for ones that POST bodies. Seems like http1 and http2 clients api are different, and especially http2 ones need more boiler plate code? I'm looking particularly for one that would send bytes::Bytes over the wire. I'm noob , and would appreciate some examples around this!

I've looked quite a bit on the net an also in the examples, but did not find something useful.

Thank you!