- Created ts/detection module for unified protocol detection - Implemented TLS and HTTP detectors with fragmentation support - Moved TLS detection logic from existing code to centralized module - Updated RouteConnectionHandler to use ProtocolDetector for both TLS and HTTP - Refactored ACME HTTP parsing to use detection module - Added comprehensive tests for detection functionality - Eliminated duplicate protocol detection code across codebase This centralizes all non-destructive protocol detection into a single module, improving code organization and reducing duplication between ACME and routing.
22 lines
590 B
TypeScript
22 lines
590 B
TypeScript
/**
|
|
* Centralized Protocol Detection Module
|
|
*
|
|
* This module provides unified protocol detection capabilities for
|
|
* both TLS and HTTP protocols, extracting connection information
|
|
* without consuming the data stream.
|
|
*/
|
|
|
|
// Main detector
|
|
export * from './protocol-detector.js';
|
|
|
|
// Models
|
|
export * from './models/detection-types.js';
|
|
export * from './models/interfaces.js';
|
|
|
|
// Individual detectors
|
|
export * from './detectors/tls-detector.js';
|
|
export * from './detectors/http-detector.js';
|
|
|
|
// Utilities
|
|
export * from './utils/buffer-utils.js';
|
|
export * from './utils/parser-utils.js'; |