- Removed deprecated route utility functions in favor of direct matcher usage. - Updated imports to reflect new module structure for routing utilities. - Consolidated route manager functionality into SharedRouteManager for better consistency. - Eliminated legacy routing methods and interfaces, streamlining the HttpProxy and associated components. - Enhanced WebSocket and HTTP request handling to utilize the new unified HttpRouter. - Updated route matching logic to leverage matcher classes for domain, path, and header checks. - Cleaned up legacy compatibility code across various modules, ensuring a more maintainable codebase.
22 lines
1.2 KiB
TypeScript
22 lines
1.2 KiB
TypeScript
/**
|
|
* Proxy implementations module
|
|
*/
|
|
|
|
// Export HttpProxy with selective imports to avoid conflicts
|
|
export { HttpProxy, CertificateManager, ConnectionPool, RequestHandler, WebSocketHandler } from './http-proxy/index.js';
|
|
export type { IMetricsTracker, MetricsTracker } from './http-proxy/index.js';
|
|
// Export http-proxy models except IAcmeOptions
|
|
export type { IHttpProxyOptions, ICertificateEntry, ILogger } from './http-proxy/models/types.js';
|
|
// RouteManager has been unified - use SharedRouteManager from core/routing
|
|
export { SharedRouteManager as HttpProxyRouteManager } from '../core/routing/route-manager.js';
|
|
|
|
// Export SmartProxy with selective imports to avoid conflicts
|
|
export { SmartProxy, ConnectionManager, SecurityManager, TimeoutManager, TlsManager, HttpProxyBridge, RouteConnectionHandler } from './smart-proxy/index.js';
|
|
export { SharedRouteManager as SmartProxyRouteManager } from '../core/routing/route-manager.js';
|
|
export * from './smart-proxy/utils/index.js';
|
|
// Export smart-proxy models except IAcmeOptions
|
|
export type { ISmartProxyOptions, IConnectionRecord, IRouteConfig, IRouteMatch, IRouteAction, IRouteTls, IRouteContext } from './smart-proxy/models/index.js';
|
|
|
|
// Export NFTables proxy (no conflicts)
|
|
export * from './nftables-proxy/index.js';
|