mirror of https://github.com/http-rs/http-client
e5bbc272d1
When trying to connect to multiple IPs for a hostname (e.g. IPv4 and IPv6) we ought to try all prior returning error. Running a wget to the running mockito server has this output: ,---- | $ wget -O- http://localhost:1234/report | --2021-03-08 16:13:12-- http://localhost:1234/report | Resolving localhost (localhost)... ::1, 127.0.0.1 | Connecting to localhost (localhost)|::1|:1234... failed: Connection refused. | Connecting to localhost (localhost)|127.0.0.1|:1234... connected. | HTTP request sent, awaiting response... 200 OK `---- Fixes: #79. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> |
||
---|---|---|
.github | ||
examples | ||
src | ||
tests | ||
.gitignore | ||
CHANGELOG.md | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
http-client
Types and traits for http clients.
Installation
With cargo add installed run:
$ cargo add http-client
Safety
For non-wasm clients, this crate uses #![deny(unsafe_code)]
to ensure everything is implemented in
100% Safe Rust.
Contributing
Want to join us? Check out our "Contributing" guide and take a look at some of these issues:
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.