stoppable.d.ts 444 B

12345678910111213
  1. /// <reference types="node" />
  2. /// <reference types="node" />
  3. import type http from 'http';
  4. import https from 'https';
  5. import type { AbortSignal } from 'node-abort-controller';
  6. export declare class Stopper {
  7. private server;
  8. private requestCountPerSocket;
  9. private stopped;
  10. constructor(server: http.Server | https.Server);
  11. stop(hardDestroyAbortSignal?: AbortSignal): Promise<boolean>;
  12. }
  13. //# sourceMappingURL=stoppable.d.ts.map