NAME
Proxy::Impersonate::Connection - one client connection's state machine
DESCRIPTION
One instance per client connection, created by Proxy::Impersonate on accept. Reads a plaintext proxy request or a CONNECT, terminates TLS for the latter with Proxy::Impersonate::Cert, then forwards each request upstream through the shared Curl::Impersonate multi handle and streams the response back -- with backpressure, so a slow client cannot make the proxy buffer without bound. You do not normally touch it directly.
The on_request hook documented in "new" in Proxy::Impersonate fires here, in _forward: after TLS termination and before anything goes upstream, which is the only point where the request exists in plaintext and is still changeable.