UNPKG

@push.rocks/smartproxy

Version:

A powerful proxy package with unified route-based configuration for high traffic management. Features include SSL/TLS support, flexible routing patterns, WebSocket handling, advanced security options, and automatic ACME certificate management.

20 lines (19 loc) 708 B
import * as plugins from '../../../plugins.js'; import type { IRouteConfig } from '../../smart-proxy/models/route-types.js'; import type { IConnectionRecord } from '../../smart-proxy/models/interfaces.js'; import type { ILogger } from '../models/types.js'; export interface IStaticHandlerContext { connectionId: string; connectionManager: any; settings: any; logger?: ILogger; } /** * Handles static routes including ACME challenges */ export declare class StaticHandler { /** * Handle static routes */ static handleStatic(socket: plugins.net.Socket, route: IRouteConfig, context: IStaticHandlerContext, record: IConnectionRecord, initialChunk?: Buffer): Promise<void>; }