Agent

@JSImport("node:http", "Agent") @native @JSType class Agent() extends Agent
class Agent
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Constructors

def this(opts: AgentOptions)

Inherited methods

def destroy(): Unit

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.

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.

Inherited from
Agent
def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Inherited fields

Inherited from
Agent
var maxFreeSockets: Double
Inherited from
Agent
var maxSockets: Double
Inherited from
Agent
var maxTotalSockets: Double
Inherited from
Agent
Inherited from
Agent
Inherited from
Agent