InvalidHostValue¶
A request's Host header field value is not a well-formed host.
RFC 9110 §7.2 / RFC 9112 §3.2 require the Host value to be a uri-host
[ ":" port ] (uri-host per RFC 3986 §3.2.2: an IP-literal, IPv4address, or
reg-name, plus an optional *DIGIT port). A value that violates that
grammar — for example a, b (the space is not a reg-name character) or a port
that is non-numeric or greater than 65535 — is a 400. Distinct from
BadHostHeader, which covers a missing or duplicated Host field rather than a
malformed value. Enforced at the protocol layer (where the headers are known).
Constructors¶
create¶
Returns¶
- InvalidHostValue val^
Public Functions¶
string¶
Returns¶
- String iso^
eq¶
Parameters¶
- that: InvalidHostValue val
Returns¶
- Bool val
ne¶
Parameters¶
- that: InvalidHostValue val
Returns¶
- Bool val