-
Notifications
You must be signed in to change notification settings - Fork 34
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
Proxying uploads and downloads #5
Comments
Hi @Lazarus404! Sorry for the delay. I do not have any examples of this, and as of now, this isn't something that I've tested or looked into at any depth. That being said, I'd be more than happy to help correct any issues that arise. |
Hi slogsdon, Do you have any notion of how to get started with it? Any ideas for pointers? There's a disconnect in my brain of taking the stream from one down/upload and piping it to another down/upload. It'd be a pretty powerful feature, though, imho. |
I believe this should happen automagically via regular HTTP requests and responses since Plug only considers request/response bodies as being of type For uploads, we read the request body from the client and pass it to the upstream. Granted, we may not be reading the entire request body at the moment. For downloads, the upstream responds, and we take the body of the upstream response and set it as the client response. |
Thanks. I'll have a play and will report back with something that works
when I have it.
|
Is this library capable of proxying uploaded and downloaded files between Plug and the HTTP client? If so, are their any examples of these?
Thanks,
Lee
The text was updated successfully, but these errors were encountered: