Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 702 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 702 Bytes

Rust HTTP upload with progress

This example uses reqwest and indicatif to upload binary data to an actix-web server with progress. Building the project will result in two binaries, one for the client and one for the server.

Build and Run

Build the binaries with cargo

cargo build

Run the server

$ ./target/debug/upload-server

Server running on 0.0.0.0:3030 🚀

Run the client on a decent sized file and watch the progress bar cruise.

./target/debug/upload-client upload ~/Downloads/archive.zip