fn loopback_host(host: &str) -> bool
Whether the Host header names this computer’s loopback: 127.0.0.1, localhost or [::1], with or without a port.
Host
127.0.0.1
localhost
[::1]