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 Body impls #22

Merged
merged 5 commits into from
Nov 21, 2024
Merged

Refactor Body impls #22

merged 5 commits into from
Nov 21, 2024

Conversation

pchickey
Copy link
Collaborator

@pchickey pchickey commented Nov 21, 2024

Closes #10

Get rid of blanket impl of Body for AsyncRead. We need to be able to specialize.

Write the obvious impls of Body for Empty and BoundedBody.

IncomingBody gets the BodyKind code uncommented and used.

Show that IncomingBody's Body::len works in http_get test.

Show that BoundedBody and Request body works in new http_post test.

@pchickey pchickey merged commit 5ce367a into main Nov 21, 2024
4 checks passed
@pchickey pchickey deleted the pch/body_impls branch November 21, 2024 18:35
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.

http: Body.len on an IncomingBody is None even when content-length is in Respose
1 participant