http2: add raw header array support to h2Session.request() · nodejs/node@5e9cac2 · GitHub
Skip to content

Commit 5e9cac2

Browse files
pimterryRafaelGSS
authored andcommitted
http2: add raw header array support to h2Session.request()
This also notably changes error handling for request(). Previously some invalid header values (but not all) would cause the session to be unnecessarily destroyed automatically, e.g. passing an unparseable header name to request(). This is no longer the case: header validation failures will throw an error, but will not destroy the session or emit 'error' events. PR-URL: #57917 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4ef6376 commit 5e9cac2

11 files changed

Lines changed: 354 additions & 131 deletions

doc/api/http2.md

Lines changed: 1 addition & 1 deletion

lib/internal/http2/core.js

Lines changed: 50 additions & 60 deletions

0 commit comments

Comments
 (0)