Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Agent

Package version

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.

Hierarchy

  • Agent

Index

Properties

maxFreeSockets

maxFreeSockets: number

For agents with keepAlive enabled, this sets the maximum number of sockets that will be left open in the free state.

maxSockets

maxSockets: number

Determines how many concurrent sockets the agent can have open per origin.

requests

requests: unknown

An object which contains queues of requests that have not yet been assigned to sockets.

sockets

sockets: unknown

An object which contains arrays of sockets currently in use by the agent.

Methods

destroy

  • destroy(): void

Generated using TypeDoc