Repository navigation
Conversation
### Motivation The existing HTTP/1.1 request round-trip exercises bare chunks, so it cannot detect losing application-visible chunk extensions. ### Modification Send a modeled chunked POST whose first data chunk has two token-valued extension entries. Compare the server application's complete typed request chunk stream, including the unadorned second data chunk and the final chunk. Keep the response-body and connection-completion assertions with a regular 200 response. ### Result The native round-trip checks request metadata and data together without changing production behavior or the public API. ### Tests JDK 17; focused ClientServerSpec and ClientServerHttp2EnabledSpec passed on Scala 2.13.18 and 3.3.9 (2/2 each, both using HTTP/1.1). Scoped test Scalafmt and license-header checks passed. ### References - [RFC 9112 §7.1.1](https://www.rfc-editor.org/rfc/rfc9112.html#section-7.1.1) - [Netty's multiple token-valued request extension test](https://github.com/netty/netty/blob/fd00bc3a2a02a614fca8241d16570801a3a08314/codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java#L1029-L1054)
pjfanning
reviewed
Nov 26, 2026
pjfanning
left a comment
Member
There was a problem hiding this comment.
Useful coverage. Nits:
- It rewrites the existing "properly complete a chunked request/response cycle" test rather than adding a new one.
206/PartialContent→OKis unrelated churn.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The existing HTTP/1.1 request round-trip exercises bare chunks, so it cannot detect losing application-visible chunk extensions.
Modification
Send a modeled chunked POST whose first data chunk has two token-valued extension entries. Compare the server application's complete typed request chunk stream, including the unadorned second data chunk and the final chunk. Keep the response-body and connection-completion assertions with a regular 200 response.
Result
The native round-trip checks request metadata and data together without changing production behavior or the public API.
Tests
JDK 17; focused ClientServerSpec and ClientServerHttp2EnabledSpec passed on Scala 2.13.18 and 3.3.9 (2/2 each, both using HTTP/1.1). Scoped test Scalafmt and license-header checks passed.
References