Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Agent

Hierarchy

Index

Constructors

constructor

Properties

maxFreeSockets

maxFreeSockets: number

maxSockets

maxSockets: number

options

options: AgentOptions

requests

requests: object

Type declaration

sockets

sockets: object

Type declaration

Methods

destroy

  • destroy(): void
  • Destroy any sockets that are currently in use by the agent. It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled, then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise, sockets may hang open for quite a long time before the server terminates them.

    Returns void

Generated using TypeDoc