pub async fn check_https_upgrade(
host: &str,
timeout: Duration,
) -> Result<HttpsUpgradeReport>Expand description
Probes http://<host>/ and reports whether it upgrades to HTTPS.
ยงErrors
InvalidDomain for bad input; an HTTP error when the first hop failed for
a reason other than a refused/failed connection, or a later hop failed
before the chain reached https:// or another site (the result is
unknown).