类:https.Agent


【Class: https.Agent

一个用于 HTTPS 的 Agent 对象,类似于 http.Agent。有关更多信息,请参阅 https.request()

【An Agent object for HTTPS similar to http.Agent. See https.request() for more information.】

http.Agent 一样,createConnection(options[, callback]) 方法可以被重写,以自定义 TLS 连接的建立方式。

【Like http.Agent, the createConnection(options[, callback]) method can be overridden to customize how TLS connections are established.】

有关重写此方法的详细信息,请参见 agent.createConnection(), 包括使用回调的异步套接字创建。