http-rs / http-rs/surf

Streaming Uploads

Open
#300 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
128
PR merge metrics
No merged PRs in 30d

Description

Hi,

I want to implement a streaming file upload (POST request) using surf. This is a huge file and I get one chunk of the file at a time. Is there a way to open an InputStream with the surf request builder and append bytes as and when received?

I want the client to not wait to receive to receive all the bytes but instead start sending chunks as soon as the bytes are received.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by reviewing surf's request builder and existing POST body APIs, then determine how an InputStream or incremental byte source could be represented. Done means the client can send chunks as they arrive without buffering the entire file, with coverage for a large streaming upload.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.