Skip to content

feat: polymorphic helper for request body streaming#485

Merged
ericmj merged 4 commits intoelixir-mint:mainfrom
tank-bohr:next_body_chunk
May 5, 2026
Merged

feat: polymorphic helper for request body streaming#485
ericmj merged 4 commits intoelixir-mint:mainfrom
tank-bohr:next_body_chunk

Conversation

@tank-bohr
Copy link
Copy Markdown
Contributor

See #484 (comment) for details

Remove a redundant HTTP/1 test (HTTP/1 only permits one streaming
request at a time, so the "different ref while streaming" case
collapses into the existing make_ref() test).

Add an HTTP/2 end-to-end test that exercises the documented streaming
loop across multiple iterations with a body larger than the initial
window, processing WINDOW_UPDATE frames between chunks.
Copy link
Copy Markdown
Member

@ericmj ericmj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks for pushing this through and for sticking with this through multiple revisions.

I left two comments about documentation only.

Comment thread lib/mint/http.ex Outdated
Comment thread lib/mint/http.ex
@ericmj ericmj merged commit 4c4bf91 into elixir-mint:main May 5, 2026
3 checks passed
@tank-bohr tank-bohr deleted the next_body_chunk branch May 5, 2026 15:50
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