Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adamreichold/zeptohttpc

Proving ground for changes to attohttpc
https://github.com/adamreichold/zeptohttpc

Last synced: 3 months ago
JSON representation

Proving ground for changes to attohttpc

Awesome Lists containing this project

README

        

# zeptohttpc

[![crates.io](https://img.shields.io/crates/v/zeptohttpc.svg)](https://crates.io/crates/zeptohttpc)
[![docs.rs](https://docs.rs/zeptohttpc/badge.svg)](https://docs.rs/zeptohttpc)
[![github.com](https://github.com/adamreichold/zeptohttpc/actions/workflows/test.yaml/badge.svg)](https://github.com/adamreichold/zeptohttpc/actions/workflows/test.yaml)

This crate aims to be the smallest possible yet practically useful HTTP client built on top of the [`http`](https://docs.rs/http) and [`httparse`](https://docs.rs/httparse) crates.

## Cargo features

* `encoding_rs`: Support for bodies in various character sets using the [`encoding_rs`](https://docs.rs/encoding_rs) crate.
* `flate2`: Support for compressed bodies using the [`flate2`](https://docs.rs/flate2) crate.
* `json`: Support for JSON bodies using the [`serde`](https://docs.rs/serde) and [`serde_json`](https://docs.rs/serde_json) crates.
* `tls-webpki-roots`: Support for HTTPS connections using the [`rustls`](https://docs.rs/rustls) crate with roots provided by the [`webpki-roots`](https://docs.rs/webpki-roots) crate.
* `tls-native-roots`: Support for HTTPS connections using the [`rustls`](https://docs.rs/rustls) crate with roots provided by the [`rustls-native-certs`](https://docs.rs/rustls-native-certs) crate.
* `rustls`: Support for HTTPS connections using the [`rustls`](https://docs.rs/rustls) crate without a default set of roots.
* `native-tls`: Support HTTPS connections using the [`native-tls`](https://docs.rs/native-tls) crate.

## License

Licensed under

* [Apache License, Version 2.0](LICENSE-APACHE) or
* [MIT license](LICENSE-MIT)

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.