UNPKG

harvest

Version:
25 lines (24 loc) 634 B
export interface RequestTask { method: string; uri: string; data: any; callback: (error: any, data: any) => void; } export declare class RequestClient { private accessToken; private accountId; private concurrency; private queue; private timeout; private request; constructor(config: any); preprocess(body: any, response: { headers: any; }): { headers: any; data: any; }; push(task: RequestTask): void; requestGenerator(): (task: RequestTask, done: Function) => void; retryAfter(task: RequestTask, retryAfter: number, done: Function): void; }