accessing proxy headers in userResHeaderDecorator
Hi,
userResHeaderDecorator is confusing me. Im trying to access a header value that was set in proxyReqOptDecorator before sending the request but I do not understand how to access it.
In userResHeaderDecorator(headers, userReq, userRes, proxyReq, proxyRes), proxyReq is ALWAYS an empty object ( console.log outputs {}) but if I console log proxyRes I can see the value I want, but it is burried in proxyRes.req._header.
How should I access my header value, what would be the correct way?
cheers, mg
Hi @mg,
It makes sense this is confusing; the documentation is very sparse! I will update the docs and clarify the issue you've raised about proxyReq being empty.
Thanks for raising this issue.