Repository navigation
Conversation
Assert cache fields and END_STREAM on a 304 response to a conditional GET. Assert the initial Trailer declaration, non-terminal DATA, and exact fields in terminal HEADERS on a strict response. RFC 9110 sections 6.6.2 and 15.4.5; RFC 9113 section 8.1.
He-Pin
marked this pull request as ready for review
November 28, 2026 18:46
pjfanning
reviewed
Nov 29, 2026
pjfanning
left a comment
Member
There was a problem hiding this comment.
Test-only change, reads fine and CI is green. Looks good to me.
pjfanning
approved these changes
Nov 29, 2026
He-Pin
deleted the
test/http2-response-metadata-and-declared-trailers
branch
November 29, 2026 11:37
He-Pin
added a commit
to He-Pin/incubator-pekko-http
that referenced
this pull request
Nov 29, 2026
### Motivation A native HTTP/2 conditional GET can return a bodyless 304 and advertise the known length of the selected representation. Preserve this opt-in behavior while integrating current main. ### Modification Keep the existing Scala and Java opt-in and emit the explicit length once for a native HTTP/2 conditional GET. Default omission, transparent HEAD, HTTP/1.1, and h2c replay stay unchanged; no length is inferred from the 304 entity. Resolve the conflicts while preserving apache#1868’s conditional precedence and apache#1861’s test coverage. ### Result Independent source review passed. On JDK 17, four focused cases passed on each of Scala 2.13.18 and 3.3.9. Scoped formatting passed for seven Scala files, and the Paradox documentation build passed. ### References - [RFC 9110 §8.6](https://www.rfc-editor.org/rfc/rfc9110.html#section-8.6) - [RFC 9113 §8.1.1](https://www.rfc-editor.org/rfc/rfc9113.html#section-8.1.1)
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
Pin two native HTTP/2 response behaviors that were not directly covered.
Modification
Result
Two focused checks in Http2ServerSpec; no production changes. Both passed on Scala 2.13.18 and 3.3.9 (JDK 21). The final single-file formatting check also passed; the formatter changed only line wrapping and indentation in the new request call.
RFC 9110 §6.6.2, §15.4.5, and RFC 9113 §8.1.