#buffer #http

body-image

Adaptive RAM/file-backed HTTP bodies

7 releases (2 stable)

✓ Uses Rust 2018 edition

1.0.1 Jan 5, 2019
1.0.0 Dec 4, 2018
0.5.0 Oct 19, 2018
0.4.0 Aug 15, 2018
0.1.0 Apr 17, 2018

#184 in Web programming

Download history 2/week @ 2018-10-15 60/week @ 2018-10-22 3/week @ 2018-10-29 31/week @ 2018-11-05 17/week @ 2018-11-12 20/week @ 2018-11-19 10/week @ 2018-11-26 20/week @ 2018-12-03 51/week @ 2018-12-10 12/week @ 2018-12-17 41/week @ 2018-12-24 10/week @ 2018-12-31

96 downloads per month
Used in 3 crates

MIT/Apache

53KB
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
~32K SLoC