Go to file
Otavio Salvador e5bbc272d1 h1: Fix connection with multiple IPs for a hostname
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>
2021-03-10 15:13:35 -03:00
.github ci: relax errors on warnings 2021-03-06 18:32:09 -08:00
examples example: debug print client "any" client 2021-02-12 12:56:02 -08:00
src h1: Fix connection with multiple IPs for a hostname 2021-03-10 15:13:35 -03:00
tests h1: Fix connection with multiple IPs for a hostname 2021-03-10 15:13:35 -03:00
.gitignore add: allow fetch request from worker scope. 2020-11-13 18:18:55 -08:00
CHANGELOG.md 6.3.4 2021-03-06 20:17:49 -08:00
Cargo.toml 6.3.4 2021-03-06 20:17:49 -08:00
LICENSE-APACHE . 2019-11-19 17:31:26 +01:00
LICENSE-MIT . 2019-11-19 17:31:26 +01:00
README.md Fix link to releases in README.md 2020-09-02 23:56:33 +02:00

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.