AniLink - v3.0.0
    Preparing search index...

    Function paceAfterSuccess

    • Records the rate-limit reset deadline after a successful response when the reported remaining quota drops below the configured floor. The successful response itself returns immediately; its data is never held for the window reset, and the recorded deadline paces the next request to the same host via awaitPaceDeadline.

      Parameters

      • response: AxiosResponse

        The successful response carrying the rate-limit headers.

      • resolved: ResolvedRequestOptions

        The resolved request options.

      • rateLimit: RateLimitInfo | undefined

        The rate-limit info already parsed from the response headers, when present.

      • Optionalowner: object

        The caller's stable transport-settings object, when known, used to key the shared deadline.

      • Optionalhost: string

        The upstream host the deadline is recorded for.

      Returns void