Proxy headers
theArina opened this issue · comments
How can I add proxy headers to upstream proxy ?
I assume you'd like to add extra headers to the HTTP CONNECT
method, right? Currently, this is not possible. See HandlerTunnelChain
implementation, PRs welcome.
@theArina has solution ?
@dmitryshelomanov, yeah, we made a fork. take a look, but we also added some enrichments that we needed.
@theArina any docs ?
@dmitryshelomanov, for a fork ?
@dmitryshelomanov, well, shortly you just kinda return this
{ requestAuthentication: false, upstreamProxyUrl, proxyHeaders };
instead of this
{ requestAuthentication: false, upstreamProxyUrl };
from the prepareRequestFunction
(but not necessarily)