Repository navigation
test: cover HTTP/1 response trailers without body data - #1623
Merged
Merged
Conversation
He-Pin
force-pushed
the
test/http1-trailer-without-body-data
branch
from
November 26, 2026 13:00
787d394 to
7192684
Compare
Motivation: Keep a regression for a chunked HTTP/1.1 response that carries trailer fields without data chunks. Modification: Add the trailer-only exchange to the existing HTTP/1.1 suite alongside the body-bearing trailer test. Result: The focused client/server tests assert the final trailer fields with and without body data. References: apache#1623; RFC 9110 Section 6.5; RFC 9112 Section 7.1.2.
He-Pin
force-pushed
the
test/http1-trailer-without-body-data
branch
from
November 26, 2026 19:44
7192684 to
0ea6068
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
An HTTP/1.1 chunked response can carry trailing metadata without carrying body bytes.
Modification
Use the standard typed server and client to send a 200 response whose only entity element is a declared application trailer. Drain the public chunk stream and check that it contains exactly the expected terminal chunk.
Result
The test checks that the client preserves that trailer without emitting any body chunk. No production change.
Tests
On JDK 17, the focused ClientServerSpec case passed on Scala 2.13.18 and 3.3.9 (1/1 each). It runs only in the HTTP/1.1 suite. Scoped formatting, license-header and whitespace checks passed; no full CI run.
References
Refs #1619 and #1620 for adjacent tests. RFC 9112 §7.1.2 and RFC 9110 §6.5.