Interface RESTOptions

Hierarchy

  • RESTOptions

Properties

agent?: null | Agent

The agent to use for requests.

Default Value

null

baseURL?: string

The base URL used for requests.

Default Value

disableLatencyCompensation?: boolean

Built-in latency compensator.

Default Value

false

host?: string

The Host header to use for requests.

Default Value

Parsed from baseURL

latencyThreshold?: number

In milliseconds, the average request latency at which to start emitting latency errors.

Default Value

30000

ratelimiterOffset?: number

In milliseconds, the time to offset ratelimit calculations by.

Default Value

0

requestTimeout?: number

In milliseconds, how long to wait until a request is timed out.

Default Value

15000

userAgent?: string

User-Agent header to use for requests.