Skip to content

Support sending and receiving trailers in HTTPExecutableRequest#882

Open
fabianfett wants to merge 4 commits intomainfrom
ff-support-sending-trailers-internally
Open

Support sending and receiving trailers in HTTPExecutableRequest#882
fabianfett wants to merge 4 commits intomainfrom
ff-support-sending-trailers-internally

Conversation

@fabianfett
Copy link
Member

This should be landed after #879.


This pr adds all the internal wiring in HTTP1ClientChannelHandler and HTTP2ClientRequestHandler to send and receive HTTP trailers.

@fabianfett fabianfett marked this pull request as draft January 23, 2026 12:53
@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Jan 23, 2026
@fabianfett fabianfett force-pushed the ff-support-sending-trailers-internally branch from f8c84b5 to a723ff1 Compare February 3, 2026 11:43
@fabianfett fabianfett requested a review from glbrntt February 3, 2026 11:43
@fabianfett fabianfett marked this pull request as ready for review February 3, 2026 11:46
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Could you add an end-to-end test as well?

let channel = EmbeddedChannel(handlers: [handler], loop: eventLoop)
XCTAssertNoThrow(try channel.connect(to: .init(ipAddress: "127.0.0.1", port: 80)).wait())

// non empty body is important to trigger this bug as we otherwise finish the request in a single flush
Copy link
Collaborator

Choose a reason for hiding this comment

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

which bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants