(b: u8)
| 829 | } |
| 830 | |
| 831 | fn is_token_byte(b: u8) -> bool { |
| 832 | // URL-safe base64 + common token charset. No shell metacharacters, no |
| 833 | // whitespace, no control bytes. |
| 834 | b.is_ascii_alphanumeric() || matches!(b, b'.' | b'-' | b'_' | b'~' | b'+' | b'/' | b'=') |
| 835 | } |
| 836 | |
| 837 | fn is_gateway_host_byte(b: u8) -> bool { |
| 838 | // DNS hostname (alphanumeric + `.-`), IPv4, or bracketed IPv6 (`[::1]`). |
nothing calls this directly
no outgoing calls
no test coverage detected