parseHeaders(headers) function

Parses the rate limit headers.

Signature:

export declare function parseHeaders(headers: RawAxiosResponseHeaders | AxiosResponseHeaders): {    app: RateLimitConfig[];    method: RateLimitConfig[];    usage: {        app: number[];        method: number[];    };};

Parameters

ParameterTypeDescription
headersRawAxiosResponseHeaders | AxiosResponseHeadersThe headers to parse.

Return type : { app: RateLimitConfig; method: RateLimitConfig; usage: { app: number; method: number; }; }