gschoeni / RustHTTPUploadProgress

Simple repository for HTTP upload progress using rust, reqwest, actix, and indicatif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple repository for HTTP upload progress using rust, reqwest, actix, and indicatif


Languages

Language:Rust 100.0%