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.

30 lines (29 loc) 1.1 kB
import * as plugins from '../../plugins.js'; import { ForwardingHandler } from './base-handler.js'; import type { IForwardConfig } from '../config/forwarding-types.js'; /** * Handler for HTTPS passthrough (SNI forwarding without termination) */ export declare class HttpsPassthroughHandler extends ForwardingHandler { /** * Create a new HTTPS passthrough handler * @param config The forwarding configuration */ constructor(config: IForwardConfig); /** * Initialize the handler * HTTPS passthrough handler doesn't need special initialization */ initialize(): Promise<void>; /** * Handle a TLS/SSL socket connection by forwarding it without termination * @param clientSocket The incoming socket from the client */ handleConnection(clientSocket: plugins.net.Socket): void; /** * Handle an HTTP request - HTTPS passthrough doesn't support HTTP * @param req The HTTP request * @param res The HTTP response */ handleHttpRequest(_req: plugins.http.IncomingMessage, res: plugins.http.ServerResponse): void; }