Hierarchy

  • RequestHandler

Constructors

Properties

globalBlock: boolean = false
latencyRef: LatencyRef
options: {
    agent: undefined | null | Agent;
    baseURL: string;
    disableLatencyCompensation: boolean;
    host: string;
    latencyThreshold: number;
    ratelimiterOffset: number;
    requestTimeout: number;
    userAgent: undefined | string;
}

Type declaration

  • agent: undefined | null | Agent
  • baseURL: string
  • disableLatencyCompensation: boolean
  • host: string
  • latencyThreshold: number
  • ratelimiterOffset: number
  • requestTimeout: number
  • userAgent: undefined | string
ratelimits: Record<string, SequentialBucket> = {}
readyQueue: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

Methods