Skip to content

Support true streaming request bodies (content=/data=) #513

Description

@barjin

Request bodies passed as an iterator/generator/stream are currently fully buffered into memory before the HTTP connection starts, in both impit-python (see #511) and impit-node (ReadableStream/async-iterable bodies are read to completion and concatenated before reaching the native layer).

The root cause is the shared core Rust crate, which only accepts Option<Vec<u8>> bodies. We should support streaming bodies directly into the request instead.

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions