#buffer #http

body-image

Adaptive RAM/file-backed HTTP bodies

9 releases (4 stable)

✓ Uses Rust 2018 edition

1.2.0 May 13, 2019
1.1.0 Mar 6, 2019
1.0.1 Jan 5, 2019
1.0.0 Dec 4, 2018
0.3.0 Jun 26, 2018

#10 in #buffer

Download history 1/week @ 2019-01-25 2/week @ 2019-02-01 1/week @ 2019-02-08 1/week @ 2019-02-15 1/week @ 2019-02-22 27/week @ 2019-03-01 7/week @ 2019-03-08 19/week @ 2019-03-15 59/week @ 2019-03-22 2/week @ 2019-03-29 11/week @ 2019-04-05 4/week @ 2019-04-12 3/week @ 2019-04-19 2/week @ 2019-04-26 9/week @ 2019-05-03

61 downloads per month
Used in 3 crates

MIT/Apache

56KB
1K SLoC

body-image

Crates.io Rustdoc Travis CI Build Appveyor CI Build

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.

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

~2MB
~28K SLoC