Skip to content

test: verify typed HTTP/2 TE trailers on receive - #1749

Merged
He-Pin merged 1 commit into
apache:mainfrom
He-Pin:test/http2-modeled-te-trailers
Nov 28, 2026
Merged

He-Pin merged 1 commit into
apache:mainfrom
He-Pin:test/http2-modeled-te-trailers

Conversation

@He-Pin

@He-Pin He-Pin commented Nov 27, 2026

Copy link
Copy Markdown
Member

Motivation

Strengthen the existing normal HTTP/2 request parsing test to assert the application can read TE: trailers as 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

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
He-Pin marked this pull request as ready for review November 27, 2026 16:37

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@He-Pin
He-Pin merged commit 55483c5 into apache:main Nov 28, 2026
6 checks passed
@He-Pin
He-Pin deleted the test/http2-modeled-te-trailers branch November 28, 2026 12:23
@pjfanning pjfanning added this to the 2.1.0 milestone Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants