(b: u8)
| 835 | } |
| 836 | |
| 837 | fn is_gateway_host_byte(b: u8) -> bool { |
| 838 | // DNS hostname (alphanumeric + `.-`), IPv4, or bracketed IPv6 (`[::1]`). |
| 839 | // Rejects Unicode — callers must Punycode-encode IDN hosts before emitting. |
| 840 | b.is_ascii_alphanumeric() || matches!(b, b'.' | b'-' | b':' | b'[' | b']') |
| 841 | } |
| 842 | |
| 843 | fn is_fingerprint_byte(b: u8) -> bool { |
| 844 | b.is_ascii_alphanumeric() || matches!(b, b':' | b'+' | b'/' | b'=' | b'-') |
nothing calls this directly
no outgoing calls
no test coverage detected