pub fn is_loopback_endpoint(endpoint: &str) -> bool
True when endpoint is an http(s) URL whose host is loopback (localhost, 127.0.0.0/8, ::1).
endpoint
localhost
127.0.0.0/8
::1