node-http-proxy icon indicating copy to clipboard operation
node-http-proxy copied to clipboard

Add option for attaching outgoing headers, extraHeaders.

Open cheddar opened this issue 11 years ago • 3 comments

This also required adjusting web-incoming to pass the options object to the web-outgoing passes. One thing I noticed is that web-outgoing doesn't appear to be exposed to anyone that wants mutate it externally.

I think extensions of this nature would be better done via some well-defined API that allows me to mutate the passes on the proxy object. But, as it stands that doesn't exist and is too much for me to just guess at what would be acceptable and try to fix.

cheddar avatar Feb 11 '14 18:02 cheddar

Why aren't web-outgoing passes exposed the way incoming passes are exposed, for before and after hooks?

sandinmyjoints avatar Apr 14 '14 13:04 sandinmyjoints

@cheddar could you rebase the PR and rename to outgoingHeaders? This seems reasonable, sorry it took so long

jcrugzz avatar Dec 19 '14 16:12 jcrugzz

Also as a note, headers can be modified in the proxyRes event

jcrugzz avatar Apr 01 '15 16:04 jcrugzz