Repository navigation
test: verify typed HTTP/2 TE trailers on receive - #1749
Merged
Merged
Conversation
Motivation: The positive HTTP/2 request test checks that TE: trailers is accepted, but not that the parsed field is available through typed header lookup. Modification: Give the existing GET fixture an authority and assert that its typed TE header contains exactly the trailers marker. Result: The test now catches a dropped or unmodeled field without introducing another fixture or changing production code. Tests: - Focused RequestParsingSpec case passed on JDK 17 with Scala 2.13.18 and 3.3.9, on unmodified main and published Pekko HTTP 2.0.0. - Scoped scalafmt and git diff --check passed. - The full sbt test suite was not run. References: Refs apache#1463; RFC 9113 sections 8.2.2 and 8.3.1.
He-Pin
marked this pull request as ready for review
November 27, 2026 16:37
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
Strengthen the existing normal HTTP/2 request parsing test to assert the application can read
TE: trailersas a modeled header. Use the full pseudo-header set for the GET request. No runtime behavior changes.Tests
One exact focused test per Scala 2.13.18 and 3.3.9 on Apache main and on Pekko HTTP 2.0.0. Scoped formatting passed.
References
https://www.rfc-editor.org/rfc/rfc9113.html#section-8.2.2