axum-streams-0.2.0 has been yanked.
axum streams for Rust
Library provides HTTP response streaming support for Axum web framework:
- JSON array stream format
- JSON lines stream format
- CSV stream
This type of responses are useful when you are reading huge stream of objects from some source (such as database, file, etc) and want to avoid huge memory allocations to store on the server side.
Quick start
Cargo.toml:
[]
= { = "0.2", =["json", "csv"] }
Example code:
async
async
async
All examples available at examples directory.
To run example use:
# cargo run --example json-example
Licence
Apache Software License (ASL)
Author
Abdulla Abdurakhmanov