Function kapiti::hyper_smol::client_kapiti
source · pub fn client_kapiti(
resolver: Resolver,
http2: bool,
get_ipv6: bool,
udp_size: u16,
connect_timeout: Duration
) -> Client<SmolConnector>
Expand description
Returns a new Hyper HTTP client:
- Using smol for the connection and async runtime
- Using the provided Kapiti Resolver for resolving any hostnames This is for use when the HTTP endpoint may need “bootstrap” resolving of its own.