http-rs / surf

Fast and friendly HTTP client framework for async Rust
https://docs.rs/surf
Apache License 2.0
1.45k stars 119 forks source link

Does surf support Dns-resolver, self-signed certificate? #254

Closed flyinmind closed 3 years ago

flyinmind commented 3 years ago

Anyone know how to support Dns-resolver, self-signed certificate in surf? Thanks! The two features are very useful in micro-service framework. I searched in docs, but can't find them.

Fishrock123 commented 3 years ago

https://github.com/http-rs/surf/releases/tag/v2.3.0 has support for setting TLS options (but only on the h1-client).

to use the async-h1 client: Cargo.toml surf = { version: "2.3", default-features=false, features=["h1-client"] } (or h1-client-rustls)