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
Parameter | Type | Description |
---|---|---|
headers | RawAxiosResponseHeaders | AxiosResponseHeaders | The headers to parse. |
Return type : { app: RateLimitConfig; method: RateLimitConfig; usage: { app: number; method: number; }; }