Unverified Commit 3e5b07a8 authored by James M Snell's avatar James M Snell Committed by Anna Henningsen
Browse files

http2: refactor trailers API

Rather than using the `'fetchTrailers'` event to collect trailers,
a new `getTrailers` callback option is supported. If not set, the
internals will skip calling out for trailers at all. Expands the
test to make sure trailers work from the client side also.

Backport-PR-URL: https://github.com/nodejs/node/pull/14813


Backport-Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Backport-Reviewed-By: default avatarTimothy Gu <timothygu99@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/14239


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
parent 26e1f8e0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment