Get a unique name for a set of request options, to determine whether a connection can be reused. For an HTTP agent, this returnshost:port:localAddress or host:port:localAddress:family. For an HTTPS agent, the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options that determine socket reusability.
method
http.Agent.getName
): string;
@param options
A set of options providing information for name generation
Referenced types
interface ClientRequestArgs
- createConnection?: (options: ClientRequestArgs, oncreate: (err: null | Error, socket: Duplex) => void) => undefined | null | Duplex
- hints?: number
One or more supported
getaddrinfoflags. Multiple flags may be passed by bitwiseORing their values.