NAME
Proxy::Impersonate::HTTP - request/response head parsing for the proxy
DESCRIPTION
The small HTTP codec Proxy::Impersonate::Connection runs on: parse a request head, work out how the body is delimited, decide which client headers may be forwarded on top of the impersonation template, and format a response head. Nothing here is exported by default and you do not normally touch it directly.
coherent_headers is the interesting one: it drops the headers libcurl-impersonate supplies from its own fingerprint template (User-Agent, Accept, Accept-Language, Sec-CH-UA, ...) and keeps only what the client sent that must be carried through -- Cookie, Referer, Sec-Fetch-* and friends. Forwarding the client's own template headers would break the very fingerprint this proxy exists to reproduce, which is also why an on_request handler sees the kept set rather than the whole request.