http2.d.ts 641 B

1234567891011121314151617
  1. import { HttpPlugin } from './http';
  2. import * as http2 from 'http2';
  3. export declare type Http2Module = typeof http2;
  4. export declare type ConnectFunction = typeof http2.connect;
  5. export declare type CreateServerFunction = typeof http2.createServer;
  6. export declare class Http2Plugin extends HttpPlugin {
  7. constructor();
  8. protected applyPatch(): any;
  9. protected applyUnpatch(): void;
  10. private getPatchConnectFunction;
  11. private getPatchRequestFunction;
  12. private getMakeHttp2RequestTraceFunction;
  13. private getPatchCreateServerFunction;
  14. private getPatchEmitFunction;
  15. }
  16. declare const plugin: Http2Plugin;
  17. export { plugin };