Skip to main content

guarded_client

Function guarded_client 

Source
async fn guarded_client(url: &Url, strict: bool) -> Option<Client>
Expand description

A client for requests to url’s host. Strict: the host is checked by name and by every address it resolves to, and the connection is pinned to those addresses, so the name cannot resolve differently between the check and the connection. Never follows redirects. None when the host is refused.