Skip to content

Conversation

@clue
Copy link
Member

@clueclue commented Jul 27, 2020

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
@clueclue requested review from WyriHaximus and jsorJuly 27, 2020 11:52
@WyriHaximusWyriHaximus merged commit cb9ced0 into reactphp:masterJul 28, 2020
@clueclue 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