Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I intercept/modify result headers before proxy request finishes? #456

Closed
aaronshaf opened this issue Sep 6, 2013 · 1 comment
Closed

Comments

@aaronshaf
Copy link

I am proxying an API which returns headers that need to be transformed.

@cronopio
Copy link
Contributor

cronopio commented Dec 9, 2013

Hi @aaronshaf
We're doing a rewrite of the proxy to work with node 0.10.x, also Im working on improve the examples for the new proxy.

I got an example for what you need here https://github.com/nodejitsu/node-http-proxy/blob/better-examples/examples/middleware/modifyResponse-middleware.js

If you got troubles or questions about that example, the discuss is here #520

I'm goona close this, if you got further doubts please open a new issue

@cronopio cronopio closed this as completed Dec 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants