Hostname - RFC 1123 hostname validation for HTTP Host headers#
Validates HTTP Host header values according to RFC 1123 hostname rules. Handles IPv4/IPv6 addresses, port stripping, and subdomain matching against base domains. Stricter than RFC 1035 DNS validation - enforces that labels cannot end with hyphens.
Installation#
opam install hostname will install this library.