hostname
ModuleHost names checked against an allow list, alone or as the host of a URL.
Contents
use utopia_validators::Host;Rust
pub struct HostA URL whose host is allowed by a list of names and patterns, matched as
Hostname matches them.
use utopia_validators::Hostname;Rust
pub struct HostnameA host name allowed by a list of names and patterns.
The value must be a non-empty string of at most 253 characters, without a
path (/), port or scheme (:); "0" is refused. An empty list allows
every such name. A pattern starting with * allows any name ending with
the rest: * allows everything, and *.example.com any subdomain of
example.com (but not the apex).