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

Feature request: allow add, files_write, block_put, … to take AsyncRead or similar #58

Open
jcaesar opened this issue Aug 4, 2020 · 2 comments

Comments

@jcaesar
Copy link
Contributor

jcaesar commented Aug 4, 2020

The title actually says it all, but:
Various getters return asynchronous streams (async_ftp::FtpSream::retr in my case, but so does e.g. cat — seems unfair to return something the library itself doesn't accept), and those cannot be easily passed to functions like add. Buffering in memory or temporary files may be expensive or even infeasible, depending on the size.

So it would be nice if some form of async stream could be passed to add and friends.

(This requires changes to rust-multipart-rfc7578, I think. I hope not to hyper, too?)

@SionoiS
Copy link
Contributor

SionoiS commented Aug 4, 2020

I currently buffer big video files in my app. I would definitely appreciate more asynchrony.

+1 from me!

@SionoiS
Copy link
Contributor

SionoiS commented Aug 26, 2020

https://github.com/cetra3/mpart-async/

Would it be useful? I'm not familiar with that kind of stuff.

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