diff options
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r-- | doc/api/http2.md | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index 293aa71f3e..6a9f0c8300 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1026,6 +1026,7 @@ the `'aborted'` event will have been emitted. <!-- YAML added: v11.2.0 --> + * {number} This property shows the number of characters currently buffered to be written. @@ -1751,6 +1752,7 @@ a given number of milliseconds set using `http2server.setTimeout()`. <!-- YAML added: v8.4.0 --> + * `callback` {Function} Stops the server from establishing new sessions. This does not prevent new @@ -1900,6 +1902,7 @@ the connection is terminated. See the [Compatibility API][]. <!-- YAML added: v8.4.0 --> + * `callback` {Function} Stops the server from establishing new sessions. This does not prevent new @@ -2324,17 +2327,18 @@ means that normal JavaScript object methods such as not work. For incoming headers: + * The `:status` header is converted to `number`. * Duplicates of `:status`, `:method`, `:authority`, `:scheme`, `:path`, -`:protocol`, `age`, `authorization`, `access-control-allow-credentials`, -`access-control-max-age`, `access-control-request-method`, `content-encoding`, -`content-language`, `content-length`, `content-location`, `content-md5`, -`content-range`, `content-type`, `date`, `dnt`, `etag`, `expires`, `from`, -`if-match`, `if-modified-since`, `if-none-match`, `if-range`, -`if-unmodified-since`, `last-modified`, `location`, `max-forwards`, -`proxy-authorization`, `range`, `referer`,`retry-after`, `tk`, -`upgrade-insecure-requests`, `user-agent` or `x-content-type-options` are -discarded. + `:protocol`, `age`, `authorization`, `access-control-allow-credentials`, + `access-control-max-age`, `access-control-request-method`, `content-encoding`, + `content-language`, `content-length`, `content-location`, `content-md5`, + `content-range`, `content-type`, `date`, `dnt`, `etag`, `expires`, `from`, + `if-match`, `if-modified-since`, `if-none-match`, `if-range`, + `if-unmodified-since`, `last-modified`, `location`, `max-forwards`, + `proxy-authorization`, `range`, `referer`,`retry-after`, `tk`, + `upgrade-insecure-requests`, `user-agent` or `x-content-type-options` are + discarded. * `set-cookie` is always an array. Duplicates are added to the array. * For duplicate `cookie` headers, the values are joined together with '; '. * For all other headers, the values are joined together with ', '. @@ -3386,6 +3390,7 @@ will result in a [`TypeError`][] being thrown. <!-- YAML added: v8.4.0 --> + * `headers` {HTTP/2 Headers Object} An object describing the headers * `callback` {Function} Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or |