Skip to content

feat(client): Add Expect: 100-continue body wrapper - #321

Open
bountis wants to merge 1 commit into
hyperium:masterfrom
bountis:feat/client-expect-continue
Open

feat(client): Add Expect: 100-continue body wrapper#321
bountis wants to merge 1 commit into
hyperium:masterfrom
bountis:feat/client-expect-continue

Conversation

@bountis

@bountis bountis commented Sep 12, 2026

Copy link
Copy Markdown

Add a request body wrapper which handles the Expect: 100-continue header flow.
https://www.rfc-editor.org/rfc/rfc9110.html#name-expect

Also adds a utility wrap which wraps a request body in ExpectContinueBody, adds the Expect: 100-continue header if not present, adds an on_informational hook which signals to release the body.
The poll_frame implementation parks the body until a signal is received/cancelled or a configured timeout elapses.

Tests and a small example are added which demonstrate the behavior.

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.

1 participant