Skip to main content

is_https_or_loopback_http

Function is_https_or_loopback_http 

Source
pub fn is_https_or_loopback_http(url: &Url) -> bool
Expand description

Returns whether url is HTTPS or an HTTP loopback URL.

This is useful for development-friendly security checks where plain HTTP is accepted only for localhost and loopback IP addresses.