-
-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Hello,
Could the global-agent support customized headers? Especially like request header "proxy-authorization", which is required to secure proxy server access, and also is a http standard (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization).
As I can see global-agent's some logs show:
{"context":{"package":"global-agent","namespace":"Agent","logLevel":10,"target":{"host":"localhost","port":80,"proxy":{"authorization":null,"hostname":"proxy-example.com","port":8003},"tls":{}}},"message":"connecting","sequence":14,"time":1640756787290,"version":"1.0.0"}
In which, proxy info contains a header data "authorization", which maybe used by some proxy, but its value cannot be set, no interface to do it. And as I mentions above, the standard header "proxy-authorization" should be support and also provide interface to set its value.
Thanks!