Skip to content

BadHostHeader

[Source]

A request's Host header field is missing (HTTP/1.1) or duplicated (any version).

RFC 9110 §7.2 / RFC 9112 §3.2 require every HTTP/1.1 request to carry exactly one Host field; a server must answer 400 to one that lacks Host or has more than one. Stallion also rejects a duplicate Host on HTTP/1.0 — a second Host line is request-smuggling surface regardless of version. Enforced at the protocol layer (where the assembled headers are known), not the parser.

primitive val BadHostHeader

Constructors

create

[Source]

new val create()
: BadHostHeader val^

Returns


Public Functions

string

[Source]

fun box string()
: String iso^

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns