Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

What about pipe the response from request() to this.res? #43

Open
JasonBoy opened this issue Nov 8, 2016 · 1 comment
Open

What about pipe the response from request() to this.res? #43

JasonBoy opened this issue Nov 8, 2016 · 1 comment

Comments

@JasonBoy
Copy link

JasonBoy commented Nov 8, 2016

can we just pipe the response back to this.res?

this.req.pipe(request(options)).pipe(this.res) without setting all the response headers and body manually?
looks like this is much more straight forward.

@popomore
Copy link
Owner

popomore commented Feb 2, 2017

Yes, we can use stream when request the real server, then pipe to response.

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

No branches or pull requests

2 participants