Interface Http1Options

The options available for the DataAPIClient related to making HTTP/1.1 requests.

interface Http1Options {
    keepAlive?: boolean;
    keepAliveMS?: number;
    maxFreeSockets?: number;
    maxSockets?: number;
}

Properties

keepAlive?: boolean

Whether to keep the connection alive for future requests. This is generally recommended for better performance.

Defaults to true.

Default Value

true
keepAliveMS?: number

The delay (in milliseconds) before keep-alive probing.

Defaults to 1000ms.

Default Value

1000
maxFreeSockets?: number

Maximum number of lingering sockets, waiting to be re-used for new requests.

Defaults to Infinity.

Default Value

Infinity
maxSockets?: number

Maximum number of sockets to allow per origin.

Defaults to 256.

Default Value

256