#http #https #client #request #response

zeptohttpc

minimal HTTP client using http and httparse crates

18 releases

0.5.1 Oct 8, 2022
0.5.0 Sep 27, 2021
0.4.1 Sep 19, 2021
0.4.0 Mar 9, 2021
0.1.8 Mar 11, 2020

#55 in HTTP client

Download history 9/week @ 2022-11-30 7/week @ 2022-12-07 26/week @ 2022-12-14 8/week @ 2022-12-21 9/week @ 2022-12-28 27/week @ 2023-01-04 45/week @ 2023-01-11 21/week @ 2023-01-18 23/week @ 2023-01-25 22/week @ 2023-02-01 61/week @ 2023-02-08 73/week @ 2023-02-15 12/week @ 2023-02-22 50/week @ 2023-03-01 7/week @ 2023-03-08 7/week @ 2023-03-15

96 downloads per month

MIT/Apache

52KB
1K SLoC

zeptohttpc

This crate aims to be the smallest possible yet practically useful HTTP client built on top of the http and httparse crates.

Cargo features

  • encoding_rs: Support for bodies in various character sets using the encoding_rs crate.
  • flate2: Support for compressed bodies using the flate2 crate.
  • native-tls: Support HTTPS connections using the native-tls crate.
  • json: Support for JSON bodies using the serde and serde_json crates.
  • tls-webpki-roots: Support for HTTPS connections using the rustls crate with roots provided by the webpki-roots crate.
  • tls-native-roots: Support for HTTPS connections using the rustls crate with roots provided by the rustls-native-certs crate.
  • rustls: Support for HTTPS connections using the rustls crate without a default set of roots.

License

Licensed under

at your option.

Contribution

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

Dependencies

~0.5–10MB
~200K SLoC