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

Maybe add an example of how to use hyper client to download file? #58

Open
finlaydotb opened this issue Jun 14, 2020 · 1 comment
Open

Comments

@finlaydotb
Copy link

This is a use case I am currently trying to use hyper for, and so far, so good I have not been able to figure how to do that out.

It would be a nice addition to the examples to include this :)

@seanmonstar
Copy link
Member

The basic client guide shows fetching a page and writing it to stdout. To save a file, the only thing you would change is to use tokio::fs::File instead of stdout.

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