#buffer #http

body-image

Adaptive RAM/file-backed HTTP bodies

8 releases (3 stable)

✓ Uses Rust 2018 edition

1.1.0 Mar 6, 2019
1.0.1 Jan 5, 2019
1.0.0 Dec 4, 2018
0.5.0 Oct 19, 2018
0.1.0 Apr 17, 2018

#19 in #buffer

Download history 10/week @ 2018-11-22 64/week @ 2018-11-29 11/week @ 2018-12-06 13/week @ 2018-12-13 43/week @ 2018-12-20 4/week @ 2018-12-27 24/week @ 2019-01-03 7/week @ 2019-01-10 6/week @ 2019-01-17 1/week @ 2019-01-24 2/week @ 2019-01-31 1/week @ 2019-02-07 2/week @ 2019-02-21 19/week @ 2019-02-28

44 downloads per month
Used in 3 crates

MIT/Apache

54KB
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