Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(app): update deprecated hyper body calls #3411

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

cratelyn
Copy link
Collaborator

@cratelyn cratelyn commented Dec 4, 2024

hyper 0.14.x provided a collection of interfaces related to collecting
and aggregating request and response bodies, which were deprecated and
removed in the 1.x major release.

this commit updates calls to hyper::body::to_bytes(..) and
hyper::body::aggregate(..). for now, http_body::Body is used, but we
can use http_body_util::BodyExt once we've bumped our hyper dependency
to the 1.x major release.

for more information, see:

before we address deprecated hyper interfaces related to `http_bodies`,
we'll want to add this dependency so that we can call `Body::collect()`.

Signed-off-by: katelyn martin <kate@buoyant.io>
hyper 0.14.x provided a collection of interfaces related to collecting
and aggregating request and response bodies, which were deprecated and
removed in the 1.x major release.

this commit updates calls to `hyper::body::to_bytes(..)` and
`hyper::body::aggregate(..)`. for now, `http_body::Body` is used, but we
can use `http_body_util::BodyExt` once we've bumped our hyper dependency
to the 1.x major release.

for more information, see:

* linkerd/linkerd2#8733
* hyperium/hyper#2840
* hyperium/hyper#3020

Signed-off-by: katelyn martin <kate@buoyant.io>
@cratelyn cratelyn marked this pull request as ready for review December 4, 2024 02:20
@cratelyn cratelyn requested a review from a team as a code owner December 4, 2024 02:20
@cratelyn cratelyn merged commit 36474b3 into main Dec 4, 2024
15 checks passed
@cratelyn cratelyn deleted the kate/hyper-1.x-body-collecting branch December 4, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants