Repository navigation
test: cover HTTP/1 repeated request field value order - #1624
Merged
Merged
Conversation
pjfanning
reviewed
Nov 26, 2026
pjfanning
left a comment
Member
There was a problem hiding this comment.
Fine, though low value: header lines are collected into a ListBuffer in HttpMessageParser, and RequestParserSpec already compares header lists in order. Nit: in ClientServerSpecBase, so it runs twice.
He-Pin
force-pushed
the
test/http1-request-field-value-order
branch
from
November 26, 2026 12:08
96cdbe9 to
8376ef0
Compare
Motivation: The HTTP/1.1 loopback suite should verify same-name request field order across client rendering and server parsing. Modification: Add the approved typed POST test inside the existing HTTP/1.1 test group. Preserve the existing request and response scenarios unchanged. Result: The test asserts the received field values in original logical order together with the HTTP version and the complete request body. References: Apache Pekko HTTP apache#1624; RFC 9110 Section 5.3.
He-Pin
force-pushed
the
test/http1-request-field-value-order
branch
from
November 26, 2026 20:21
8376ef0 to
ef84eb5
Compare
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
HTTP preserves the relative value order of a repeated list-valued field. Existing client/server tests do not assert that order for a standard HTTP/1.1 POST.
Modification
Use the stock client and server with a normal fixed-length POST. Verify the values of the selected application field in order, the request entity length, and its exact body.
Result
The test does not require a particular order between different field names or prevent combining same-name field lines. No production change.
Tests
JDK 17: both
ClientServerSpecandClientServerHttp2EnabledSpecwere selected for the focused native runs. This case ran only in the concrete HTTP/1.1ClientServerSpecand passed once on each Scala version (2.13.18 and 3.3.9, 1/1 each). Scoped formatting and license-header checks passed. No full CI run.References
RFC 9110 §5.3 and §9.3.3. Inspired by Netty's decoder test.