HTTPS
Options for making an HTTPS request.
Module:node:https
Support: Experimental
Since: 1.1.0
Docs: Node.js Docs
5 members: 3 supported, 2 undocumented
Static Methods
Properties
— The global HTTPS agent used for connection pooling.
Maximum allowed HTTP header size in bytes.
Dictionary HttpsServerOptions
Options for creating an HTTPS server (extends TLS + HTTP server options).
Since: 1.1.0 Docs: Node.js Docs15 members: 15 undocumented
Properties
Allow non-standard HTTP parsing (relaxed header validation).
Maximum allowed HTTP header size in bytes.
If true, duplicate header fields are joined with a comma.
Trusted CA certificate(s) (PEM string, Buffer, or array).
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.
If true, request client certificates (mTLS).
If true, reject clients with invalid or missing certificates.
Minimum TLS version (e.g. "TLSv1.2").
Maximum TLS version.
List of ALPN protocol names in preference order.
---
Dictionary HttpsRequestOptions
Options for making an HTTPS request.
Since: 1.1.0 Docs: Node.js Docs17 members: 17 undocumented
Properties
Maximum TLS version.
Protocol string (e.g. "https:").
Alias for hostname.
Alias for hostname.
Remote port (default: 443).
Request path including query string.
HTTP method (default: "GET").
HTTPS Agent to use.
Trusted CA certificate(s) (PEM string, Buffer, or array).
Server certificate chain (PEM string or Buffer).
Server certificate chain (PEM string or Buffer).
Passphrase to decrypt the private key.
If true, reject clients with invalid or missing certificates.
Server name for SNI TLS extension.
Minimum TLS version (e.g. "TLSv1.2").
Maximum TLS version.
OpenSSL cipher suite string.
---
Interface HttpsAgent
HTTPS Agent — manages connection persistence and reuse for HTTPS clients.
Since: 1.1.0 Docs: Node.js DocsMethods
Properties
— Maximum number of sockets to keep open per origin.
— Maximum number of free (idle) sockets to keep per origin.
— Maximum total number of sockets across all origins.
— Maximum total number of sockets across all origins.
---