#buffer #http

body-image

Adaptive RAM/file-backed HTTP bodies

16 releases (stable)

2.2.3 Oct 28, 2021
2.2.2 Jan 29, 2021
2.0.0 Jan 13, 2020
1.3.0 Oct 1, 2019
0.3.0 Jun 26, 2018

#1641 in Web programming

Download history 41/week @ 2023-02-10 63/week @ 2023-02-17 38/week @ 2023-02-24 14/week @ 2023-03-03 6/week @ 2023-03-10 41/week @ 2023-03-17 3/week @ 2023-03-24 9/week @ 2023-03-31 54/week @ 2023-04-07 3/week @ 2023-04-14 2/week @ 2023-04-21 17/week @ 2023-04-28 41/week @ 2023-05-05 24/week @ 2023-05-12 8/week @ 2023-05-19 27/week @ 2023-05-26

103 downloads per month
Used in 3 crates

MIT/Apache

55KB
1K SLoC

body-image

Rustdoc Change Log Crates.io CI Status

The body-image crate provides a uniform access strategy for HTTP body payloads which may be scattered across multiple allocations in RAM, or buffered to a temporary file, and optionally memory mapped. This effectively enables trading some file I/O cost in return for supporting significantly larger bodies without risk of exhausting RAM.

See the top-level (project workspace) README for additional rationale.

Minimum supported rust version

MSRV := 1.39.0

The crate will fail fast on any lower rustc (via a build.rs version check) and is also CI tested on this version.

License

This project is dual licensed under either of following:

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in body-image by you, as defined by the Apache License, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1MB
~21K SLoC