Skip to content

http: Exercise trailers with errors - #286

Merged
saulecabrera merged 2 commits into
WebAssembly:mainfrom
saulecabrera:client-trailers-errors
Aug 18, 2026
Merged

http: Exercise trailers with errors #286
saulecabrera merged 2 commits into
WebAssembly:mainfrom
saulecabrera:client-trailers-errors

Conversation

@saulecabrera

Copy link
Copy Markdown
Collaborator

Builds on top of #285

This commit exercises the non-default path for trailers, concretely when
the trailers contain an error, which according to the spec should result
in the connection closing immediately.

This path also includes a small refactoring to enable sharing
send_with_trailers across multiple tests.

Builds on top of WebAssembly#284

Adds the necessary machinery to handle outbound request and response
trailers.

This change defaults to including a small trailers parser since the
builtin http library does not include one. The parser is small enough
that it does not justify pulling in an extra dependency.
This commit exercises the non-default path for trailers, concretely when
the trailers contain an error, which according to the spec should result
in the connection closing immediately.

This path also includes a small refactoring to enable sharing
`send_with_trailers` across multiple tests.
@saulecabrera
saulecabrera force-pushed the client-trailers-errors branch from d5d131f to 38cef60 Compare August 18, 2026 12:54
@saulecabrera
saulecabrera merged commit e1f53e0 into WebAssembly:main Aug 18, 2026
9 of 10 checks passed
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.

1 participant