UNPKG

http-proxy-middleware

Version:

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

8 lines (7 loc) 255 B
import type { Agent } from 'node:http'; export type Sockets = Pick<Agent, 'sockets'>; /** * Get port from target * Using proxyRes.req.agent.sockets to determine the target port */ export declare function getPort(sockets?: Sockets): string | undefined;