Skip to content

proxy_server: support chunked request bodies#21

Merged
therealaleph merged 1 commit into
therealaleph:mainfrom
freeinternet865:fix/chunked-request-bodies
Apr 22, 2026
Merged

proxy_server: support chunked request bodies#21
therealaleph merged 1 commit into
therealaleph:mainfrom
freeinternet865:fix/chunked-request-bodies

Conversation

@freeinternet865
Copy link
Copy Markdown
Contributor

Teach the incoming HTTP request parser to handle Transfer-Encoding: chunked instead of only Content-Length-framed bodies.

Also reply with 100 Continue when a client sends Expect: 100-continue before waiting for the request body.

This keeps request framing correct for POST/PUT-style clients and adds focused tests for chunked decoding and 100-continue handling.


Edited and written by GPT.

Teach the incoming HTTP request parser to handle Transfer-Encoding:
chunked instead of only Content-Length-framed bodies.

Also reply with 100 Continue when a client sends Expect:
100-continue before waiting for the request body.

This keeps request framing correct for POST/PUT-style clients and
adds focused tests for chunked decoding and 100-continue handling.
Copy link
Copy Markdown
Owner

@therealaleph therealaleph left a comment

Choose a reason for hiding this comment

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

Adds proper chunked request decoding and Expect: 100-continue handling with focused async tests. Also correctly rejects conflicting framing (both chunked and Content-Length) and unsupported transfer encodings. cargo check + tests (51 passing) pass locally.

@therealaleph therealaleph merged commit f287921 into therealaleph:main Apr 22, 2026
@freeinternet865 freeinternet865 deleted the fix/chunked-request-bodies branch April 23, 2026 07:38
therealaleph pushed a commit that referenced this pull request Apr 25, 2026
Teach the incoming HTTP request parser to handle Transfer-Encoding:
chunked instead of only Content-Length-framed bodies.

Also reply with 100 Continue when a client sends Expect:
100-continue before waiting for the request body.

This keeps request framing correct for POST/PUT-style clients and
adds focused tests for chunked decoding and 100-continue handling.

Co-authored-by: freeinternet865 <free@internet865.com>
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