This change allows the `ClientBuilder::resolve_to_addrs` method to accept a
slice of `SocketAddr`s for overriding resolution for a single domain.
Allowing multiple IPs more accurately reflects behavior of `getaddrinfo`
and allows users to rely on hyper's happy eyeballs algorithm to connect
to a host that can accept traffic on IPv4 and IPv6.
* Check for schema during URL parse error handling. Lots of unit tests.
* Introduce BadScheme; an error source. Change schema to scheme. Use BadScheme instead of the error text to determine that a scheme is not present.
This commit improves the user experience of the users leveraging rustls.
When building the identity to use for requests, it's now possible to use
also private keys using Elliptic Curve that are encoded with SEC1
standard.
This is the default encoding used by openssl when EC keys are created.
Prior to this commit users had to convert those keys from the SEC1
encoding to the PKCS 8 one, which is something not trivial.
This feature has been recently added to rustls-pemfile crate.
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
serde_urlencoded 0.7.0 has an incorrect serde version dependency.
This causes issues in `cargo update -Z minimal-versions` builds.
It's not noticeable while testing in CI because cookie_store depends
on serde 1.0.126, however because this is an optional dependency
there is a possibility that a project using reqwest won't enable
it.
At least `wrap_stream` it is written in plain text, but adding the visual flag should be better and coherent with `byte_stream` documentation, but nothing is shown for `From<File>` for `Body`.
Co-authored-by: kraktus <kraktus@users.noreply.github.com>