//! HTTPS CONNECT tunnel handling.
//!
//! Phase 2: blind tunnel (bidirectional byte copy, no scanning).
//! Phase 3 (mitm feature): MITM with ephemeral certs and token scanning.
use TcpStream;
use debug;
/// Bidirectional tunnel between an upgraded connection and a target TCP stream.
///
/// Copies bytes in both directions without inspection. HTTPS traffic remains
/// encrypted and opaque — no token scanning occurs in this mode.
pub async