Skip to main content

Module host

Module host 

Source

Structs§

HostClassification
Result of normalizing and classifying a host value.

Enums§

HostKind
Network classification used for security-sensitive host checks.
HostLiteral
Literal shape of the normalized host.

Functions§

classify_host
Normalize and classify a host or host:port string.
is_loopback_host
Returns true for localhost names and loopback IP literals.
is_loopback_ip
Returns true only for loopback IP literals.
is_public_routable_host
Returns true only when the host is structurally valid and publicly routable.