/// /// /// /// import type dns from 'node:dns'; import http from 'node:http'; import https from 'node:https'; import type { URL } from 'node:url'; export interface HandlerOpts { upstreamProxyUrlParsed: URL; ignoreUpstreamProxyCertificate: boolean; localAddress?: string; ipFamily?: number; dnsLookup?: typeof dns['lookup']; httpAgent?: http.Agent; httpsAgent?: https.Agent; } /** * The request is read from the client and is resent. * This is similar to Direct / Chain, however it uses the CONNECT protocol instead. * Forward uses standard HTTP methods. * * ``` * Client -> Apify (HTTP) -> Web * Client <- Apify (HTTP) <- Web * ``` * * or * * ``` * Client -> Apify (HTTP) -> Upstream (HTTP) -> Web * Client <- Apify (HTTP) <- Upstream (HTTP) <- Web * ``` */ export declare const forward: (request: http.IncomingMessage, response: http.ServerResponse, handlerOpts: HandlerOpts) => Promise; //# sourceMappingURL=forward.d.ts.map