Skip to content

Add Collected::take_trailers - #114

Merged
cratelyn merged 1 commit into
hyperium:masterfrom
swlynch99:collected-take-trailers
Sep 4, 2026
Merged

Add Collected::take_trailers#114
cratelyn merged 1 commit into
hyperium:masterfrom
swlynch99:collected-take-trailers

Conversation

@swlynch99

Copy link
Copy Markdown
Contributor

If you want to inspect the body of a Collected then there is currently no way to also keep the trailers around without cloning them. This PR adds a method that lets you directly take the trailers out of the Collected.

@swlynch99
swlynch99 force-pushed the collected-take-trailers branch from 2533f8f to cd52d9d Compare March 14, 2024 23:16
@cratelyn

cratelyn commented Apr 2, 2025

Copy link
Copy Markdown
Member

i have wished for this method myself, i'd support this addition. +1

@cratelyn

cratelyn commented Sep 2, 2026

Copy link
Copy Markdown
Member

@swlynch99 pardon the delay. i would like to merge this. to help CI run, would you mind rebasing this on top of the latest master?

@swlynch99
swlynch99 force-pushed the collected-take-trailers branch from cd52d9d to 0b61670 Compare September 4, 2026 00:02
@swlynch99

Copy link
Copy Markdown
Contributor Author

I had actually assumed this crate was basically unmaintained at this point, nice to see it's being actively maintained now :)

Rebased. Happy to add a test if you want as well, but I don't think this change really needs one.

@cratelyn
cratelyn merged commit fab386f into hyperium:master Sep 4, 2026
8 checks passed
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