AgentOptions

@native @JSType trait AgentOptions extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

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

Concrete fields

var keepAlive: UndefOr[Boolean]

Keep sockets around in a pool to be used by other requests in the future. Default = false

Keep sockets around in a pool to be used by other requests in the future. Default = false

var keepAliveMsecs: UndefOr[Double]

When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. Only relevant if keepAlive is set to true.

When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. Only relevant if keepAlive is set to true.

var maxFreeSockets: UndefOr[Double]

Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.

Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.

var maxSockets: UndefOr[Double]

Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity

Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity

var maxTotalSockets: UndefOr[Double]

Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.

Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.

var scheduling: UndefOr[fifo | lifo]

Scheduling strategy to apply when picking the next free socket to use.

Scheduling strategy to apply when picking the next free socket to use.

var timeout: UndefOr[Double]

Socket timeout in milliseconds. This will set the timeout after the socket is connected.

Socket timeout in milliseconds. This will set the timeout after the socket is connected.