UNPKG

@push.rocks/smartproxy

Version:

A powerful proxy package that effectively handles high traffic, with features such as SSL/TLS support, port proxying, WebSocket handling, dynamic routing with authentication options, and automatic ACME certificate management.

14 lines (13 loc) 491 B
import * as plugins from './plugins.js'; export declare class ProxyRouter { reverseProxyConfigs: plugins.tsclass.network.IReverseProxyConfig[]; /** * sets a new set of reverse configs to be routed to * @param reverseCandidatesArg */ setNewProxyConfigs(reverseCandidatesArg: plugins.tsclass.network.IReverseProxyConfig[]): void; /** * routes a request */ routeReq(req: plugins.http.IncomingMessage): plugins.tsclass.network.IReverseProxyConfig; }