RFC 1123 hostname validation for HTTP Host headers
OCaml 90.1%
Dune 2.8%
Other 7.1%
22 1 0

Clone this repository

https://tangled.org/gazagnaire.org/ocaml-hostname https://tangled.org/did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-hostname
git@git.recoil.org:gazagnaire.org/ocaml-hostname git@git.recoil.org:did:plc:jhift2vwcxhou52p3sewcrpx/ocaml-hostname

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

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.

Documentation#