Skip to main content

Module authority

Module authority 

Source
Expand description

Request-target authority classification.

Locates the authority and path boundaries within a raw request-target, without interpreting them. Classification is kept separate from the policy that acts on it so that the URI stored on a RequestHeader and the authority a protocol implementation reconciles against Host derive from the same boundaries and cannot disagree about where the authority ends.

These functions read raw bytes and never allocate.

Enums§

RawTargetAuthority
Raw request-target authority boundaries.

Functions§

is_http_family_scheme
Check whether a scheme is HTTP, HTTPS, WebSocket, or secure WebSocket.
raw_target_authority
Classify authority and path/query boundaries in a raw request target.