8 lines
255 B
TypeScript
8 lines
255 B
TypeScript
|
|
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;
|