UNPKG

http-proxy-middleware

Version:

The one-liner node.js proxy middleware for connect, express, next.js and more

4 lines (3 loc) 323 B
import type * as http from 'node:http'; import type { Options } from './index.js'; export declare function getTarget<TReq extends http.IncomingMessage = http.IncomingMessage, TRes extends http.ServerResponse = http.ServerResponse>(req: TReq, config: Options<TReq, TRes>): Promise<import("httpxy").ProxyTarget | undefined>;