-
Notifications
You must be signed in to change notification settings - Fork 380
Closed
Description
Now that version 1.0 of the hyper and http* crates are out, the lambda* crates should probably follow suit. Unfortunately, it's a decently heavy lift, especially due to Body changing from a concrete type to a trait (hyperium/hyper#2345). I took a stab at it, but quickly got lost in a sea of <B: Body>s, and figured I'd leave it to those who know the library best.
A few bits I did pick up that may come in handy for someone wanting to take this on:
body::to_bytes(body).await?becomesbody.collect().await?.to_bytes()viahttp_body_util::BodyExt- The old
BodybecomesBoxBody<hyper::body::Bytes, hyper::Error>viahttp_body_util::combinators::BoxBodyif you want to keep it fully type-erased like it is today. Otherwise,hyper::body::Incomingis the right replacement type for at least mostResponses. - There is no more pooling http client, nor a
Connectortrait (or rather, they're relegated tohyper_util::client::legacy). Instead, there is nowhyper::client::conn::http1::Connection.
Also worth linking this, which it took me a bit to find: https://hyper.rs/guides/1/upgrading/
abusch, film42, simbleau, GillesPl, Oliboy50 and 5 moreOliboy50 and MANTENN
Metadata
Metadata
Assignees
Labels
No labels