Skip to content

For hyper 1.x, is there any example to upload a file with PUT method in a streaming way? #3853

Closed Answered by seanmonstar
zjhken asked this question in Q&A
Discussion options

You must be logged in to vote

You could look at the very similar send_file server example, adapting it to be used with a client.

Another alternative, if you don't specifically need to the control at hyper's level, is to just use reqwest. It makes this stuff easy for you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zjhken
Comment options

Answer selected by zjhken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants