HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a separate module.
Static variables
Static methods
staticcreateServer(?requestListener:(request:IncomingMessage, response:ServerResponse) ‑> Void):Server
staticcreateServer(options:HttpsCreateServerOptions, ?requestListener:(request:IncomingMessage, response:ServerResponse) ‑> Void):Server
Returns a new HTTPS web server object.
staticget(options:HttpsRequestOptions, ?callback:IncomingMessage ‑> Void):ClientRequest
staticget(url:URL, ?callback:IncomingMessage ‑> Void):ClientRequest
staticget(url:URL, options:HttpsRequestOptions, ?callback:IncomingMessage ‑> Void):ClientRequest
staticget(url:String, ?callback:IncomingMessage ‑> Void):ClientRequest
staticget(url:String, options:HttpsRequestOptions, ?callback:IncomingMessage ‑> Void):ClientRequest
staticrequest(options:HttpsRequestOptions, ?callback:IncomingMessage ‑> Void):ClientRequest
staticrequest(url:URL, ?callback:IncomingMessage ‑> Void):ClientRequest
staticrequest(url:URL, options:HttpsRequestOptions, ?callback:IncomingMessage ‑> Void):ClientRequest
staticrequest(url:String, ?callback:IncomingMessage ‑> Void):ClientRequest
staticrequest(url:String, options:HttpsRequestOptions, ?callback:IncomingMessage ‑> Void):ClientRequest
Makes a request to a secure web server.
The following additional options
from tls.connect()
are also accepted:
ca
, cert
, ciphers
, clientCertEngine
, crl
, dhparam
, ecdhCurve
, honorCipherOrder
, key
, passphrase
, pfx
,
rejectUnauthorized
, secureOptions
, secureProtocol
, servername
, sessionIdContext
.
options
can be an object, a string, or a URL
object.
If options
is a string, it is automatically parsed with new URL()
.
If it is a URL
object, it will be automatically converted to an ordinary options
object.