parse-proxy-response.d.ts 469 B

123456789101112131415
  1. /// <reference types="node" />
  2. /// <reference types="node" />
  3. /// <reference types="node" />
  4. import { IncomingHttpHeaders } from 'http';
  5. import { Readable } from 'stream';
  6. export interface ConnectResponse {
  7. statusCode: number;
  8. statusText: string;
  9. headers: IncomingHttpHeaders;
  10. }
  11. export declare function parseProxyResponse(socket: Readable): Promise<{
  12. connect: ConnectResponse;
  13. buffered: Buffer;
  14. }>;
  15. //# sourceMappingURL=parse-proxy-response.d.ts.map