Agent interface
An interface compatible with NodeJS's http.Agent
.
We want to avoid publicly re-exporting the actual interface,
since it might vary across runtime versions.
Properties
max |
For agents with keepAlive enabled, this sets the maximum number of sockets that will be left open in the free state. |
max |
Determines how many concurrent sockets the agent can have open per origin. |
requests | An object which contains queues of requests that have not yet been assigned to sockets. |
sockets | An object which contains arrays of sockets currently in use by the agent. |
Methods
destroy() | Destroy any sockets that are currently in use by the agent. |
Property Details
maxFreeSockets
For agents with keepAlive enabled, this sets the maximum number of sockets that will be left open in the free state.
maxFreeSockets: number
Property Value
number
maxSockets
Determines how many concurrent sockets the agent can have open per origin.
maxSockets: number
Property Value
number
requests
An object which contains queues of requests that have not yet been assigned to sockets.
requests: unknown
Property Value
unknown
sockets
An object which contains arrays of sockets currently in use by the agent.
sockets: unknown
Property Value
unknown
Method Details
destroy()
Destroy any sockets that are currently in use by the agent.
function destroy()