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

feat: Implement http_body::Body::size_hint for custom body #1713

Merged
merged 1 commit into from
May 29, 2024

Conversation

tottoto
Copy link
Collaborator

@tottoto tottoto commented May 28, 2024

Motivation

Provides the Body stream's size hint.

Solution

Implements Body::size_hint for custom body types. It is intentional that this is not added to test code.

@djc
Copy link
Contributor

djc commented May 29, 2024

Nice, thanks!

@djc djc added this pull request to the merge queue May 29, 2024
Merged via the queue into hyperium:master with commit 9728c01 May 29, 2024
16 checks passed
@tottoto tottoto deleted the implement-http-body-size-hint branch May 30, 2024 10:36
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