Skip to content

InvalidHostValue

[Source]

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).

primitive val InvalidHostValue

Constructors

create

[Source]

new val create()
: InvalidHostValue val^

Returns


Public Functions

string

[Source]

fun box string()
: String iso^

Returns


eq

[Source]

fun box eq(
  that: InvalidHostValue val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: InvalidHostValue val)
: Bool val

Parameters

Returns