pub fn guess_local_url(s: impl AsRef<str>) -> bool
Expand description
Guess whether the URL is local, based on the hostname.
The output of this function is best-efforts, and should be checked if
possible. It simply returns true
if the connection has no hostname,
or the hostname is localhost
or 127.0.0.1
.