Skip to content

Allow before/after streams for transforming the request #663

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

Open
jcrugzz opened this issue Jun 17, 2014 · 2 comments
Open

Allow before/after streams for transforming the request #663

jcrugzz opened this issue Jun 17, 2014 · 2 comments

Comments

@jcrugzz
Copy link
Contributor

jcrugzz commented Jun 17, 2014

Based around the concept I outlined here. This will allow arbitrary transformations of the request being proxied as well as the response we get back.

@smazurov
Copy link

👍

@philippotto
Copy link

I wrote a very simple middleware which can be plugged into http-proxy. It allows modifying the proxied data by providing a simple function. It is called transformer-proxy. Maybe someone finds it useful.

The modifyResponse-middleware.js-example didn't work for me, because the data is passed in chunks and not as a whole and the content-length becomes wrong when the data length is changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants