"Fossies" - the Fresh Open Source Software Archive

Member "node-v19.8.1-win-x64/node_modules/npm/node_modules/http-proxy-agent/dist/agent.d.ts" (16 Feb 2023, 973 Bytes) of package /windows/www/node-v19.8.1-win-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /// <reference types="node" />
    2 import net from 'net';
    3 import { Agent, ClientRequest, RequestOptions } from 'agent-base';
    4 import { HttpProxyAgentOptions } from '.';
    5 interface HttpProxyAgentClientRequest extends ClientRequest {
    6     path: string;
    7     output?: string[];
    8     outputData?: {
    9         data: string;
   10     }[];
   11     _header?: string | null;
   12     _implicitHeader(): void;
   13 }
   14 /**
   15  * The `HttpProxyAgent` implements an HTTP Agent subclass that connects
   16  * to the specified "HTTP proxy server" in order to proxy HTTP requests.
   17  *
   18  * @api public
   19  */
   20 export default class HttpProxyAgent extends Agent {
   21     private secureProxy;
   22     private proxy;
   23     constructor(_opts: string | HttpProxyAgentOptions);
   24     /**
   25      * Called when the node-core HTTP client library is creating a
   26      * new HTTP request.
   27      *
   28      * @api protected
   29      */
   30     callback(req: HttpProxyAgentClientRequest, opts: RequestOptions): Promise<net.Socket>;
   31 }
   32 export {};