You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: