requester-node-http.d.ts 614 B

12345678910111213141516
  1. /// <reference types="node" />
  2. import { Destroyable } from '@algolia/requester-common';
  3. import * as http from 'http';
  4. import * as https from 'https';
  5. import { Requester } from '@algolia/requester-common';
  6. export declare function createNodeHttpRequester({ agent: userGlobalAgent, httpAgent: userHttpAgent, httpsAgent: userHttpsAgent, requesterOptions, }?: NodeHttpRequesterOptions): Requester & Destroyable;
  7. export declare type NodeHttpRequesterOptions = {
  8. agent?: https.Agent | http.Agent;
  9. httpAgent?: http.Agent;
  10. httpsAgent?: https.Agent;
  11. requesterOptions?: https.RequestOptions;
  12. };
  13. export { }