@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.
25 lines (24 loc) • 1.22 kB
TypeScript
import * as plugins from '../../plugins.js';
import type { IHttpRouteContext } from '../../core/models/route-context.js';
import type { ILogger } from './models/types.js';
import type { IMetricsTracker } from './request-handler.js';
/**
* HTTP/2 Request Handler Helper - handles HTTP/2 streams with specific destinations
* This is a helper class for the main RequestHandler
*/
export declare class Http2RequestHandler {
/**
* Handle HTTP/2 stream with direct HTTP/2 backend
*/
static handleHttp2WithHttp2Destination(stream: plugins.http2.ServerHttp2Stream, headers: plugins.http2.IncomingHttpHeaders, destination: {
host: string;
port: number;
}, routeContext: IHttpRouteContext, sessions: Map<string, plugins.http2.ClientHttp2Session>, logger: ILogger, metricsTracker?: IMetricsTracker | null): Promise<void>;
/**
* Handle HTTP/2 stream with HTTP/1 backend
*/
static handleHttp2WithHttp1Destination(stream: plugins.http2.ServerHttp2Stream, headers: plugins.http2.IncomingHttpHeaders, destination: {
host: string;
port: number;
}, routeContext: IHttpRouteContext, logger: ILogger, metricsTracker?: IMetricsTracker | null): Promise<void>;
}