Skip to content

Expose Transfer-Encoding: chunked response header and fix chunked responses for HEAD requests - #381

Merged
WyriHaximus merged 2 commits into
reactphp:masterfrom
clue-labs:chunked-decoder
Jul 28, 2020
Merged

Expose Transfer-Encoding: chunked response header and fix chunked responses for HEAD requests#381
WyriHaximus merged 2 commits into
reactphp:masterfrom
clue-labs:chunked-decoder

Conversation

@clue

@clueclue commented Jul 27, 2020

Copy link
Copy Markdown
Member

This changeset allows exposing the Transfer-Encoding: chunked response header for the HTTP client and fixes parsing chunked responses for HEAD requests. This is mostly used internally only and the APIs are not affected otherwise, so I do not consider this a BC break.

This also applies some internal refactoring / cleanup to unify the chunked decoder and always skip trailers also for the HTTP server as well as the HTTP client. This removes the dedicated client-side chunked decoder in favor of the existing server-side chunked decoder. Unify handling to always skip (unused) trailers for both sides.

Builds on top of #380 and #368

clue added 2 commits July 27, 2020 12:08
Remove dedicated client-side chunked decoder in favor of existing
server-side chunked decoder. Unify handling to always skip (unused)
trailers for both sides.
@clueclue added this to the v1.1.0 milestone Jul 27, 2020
@clue
clue requested review from WyriHaximus and jsorJuly 27, 2020 11:52
@WyriHaximus
WyriHaximus merged commit cb9ced0 into reactphp:masterJul 28, 2020
@clue
clue deleted the chunked-decoder branch July 29, 2020 06:32
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clue@jsor@WyriHaximus