HTTP2
Node.js http2 module — HTTP/2 client and server utilities.
Module:node:http2
Support: Experimental
Since: 1.1.0
Docs: Node.js Docs
Static Methods
Properties
HTTP/2 sensitivity headers flag. Used to mark headers as sensitive
HTTP/2 sensitivity headers flag. Used to mark headers as sensitive
Dictionary Http2Settings
Settings for an HTTP/2 session.
Since: 1.1.0 Docs: Node.js Docs7 members: 7 undocumented
Properties
Maximum size of the header table used for HPACK compression.
If true, server push is permitted.
Maximum number of concurrent streams allowed.
Initial window size for stream-level flow control (bytes).
Maximum frame payload size that the sender is willing to receive.
Maximum size of header list the sender is willing to accept.
If true, CONNECT protocol support is enabled (RFC 8441).
---
Dictionary Http2ServerOptions
Options for creating an HTTP/2 server.
Since: 1.1.0 Docs: Node.js Docs7 members: 7 undocumented
Properties
Maximum number of invalid frames received before the session is destroyed.
Maximum allowed HTTP header size in bytes.
Maximum number of reserved (push) streams per session.
Maximum number of settings entries received during a SETTINGS acknowledgement.
Padding strategy: 0 = none, 1 = max, 2 = callback.
HTTP/2 peer maximum frame size.
Maximum number of reserved (push) streams per session.
---
Dictionary Http2SecureServerOptions
Options for creating a secure HTTP/2 server (TLS).
Extends: Http2ServerOptions Since: 1.1.0 Docs: Node.js Docs11 members: 11 undocumented
Properties
If true, allow HTTP/1 upgrade for ALPN negotiation failure.
Trusted CA certificates.
Server certificate chain (PEM string or Buffer).
Server certificate chain (PEM string or Buffer).
Passphrase to decrypt the private key.
PFX/PKCS#12 encoded private key and certificate chain.
OpenSSL cipher suite string.
If true, prefer the server's cipher order.
Minimum TLS version.
Maximum TLS version.
List of ALPN protocol names.
---
Dictionary Http2ConnectOptions
Options for connecting to an HTTP/2 server.
Since: 1.1.0 Docs: Node.js Docs5 members: 5 undocumented
Properties
Maximum allowed HTTP header size in bytes.
Maximum number of reserved (push) streams per session.
Maximum number of settings entries received during a SETTINGS acknowledgement.
Maximum number of reserved (push) streams per session.
If true, reject unauthorized TLS certificates.
---
Interface Http2Session
An HTTP/2 session represents a network connection between a client and server.
Extends: EventEmitter Implements: EventEmitter Since: 1.1.0 Docs: Node.js Docs13 members: 12 supported, 1 undocumented
Methods
Properties
Options for creating an HTTP/2 server.
— True if the session has been destroyed.
— True if the session is waiting for a settings acknowledgement.
— The ALPN protocol negotiated for this session.
— The remote settings received from the peer.
— The local settings for this session.
---
Interface Http2Stream
An HTTP/2 stream associated with a session.
Extends: Duplex Implements: EventEmitter Since: 1.1.0 Docs: Node.js DocsMethods
Properties
An HTTP/2 stream associated with a session.
— True if the session has been destroyed.
Options for creating an HTTP/2 server.
— True if the stream has received END_STREAM.
— Numeric stream identifier.
— Numeric stream identifier.
— RST_STREAM error code, or undefined if the stream was not reset.
— True if headers have been sent on this stream.
— The informational (1xx) headers that were sent, if any.
— The trailing headers that were sent, if any.
Options for creating an HTTP/2 server.
— The parent Http2Session.
---