Skip to main content

Module route

Module route 

Source
Expand description

The SPEC-HTTP-OBJECTS §2 URL grammar. Pure and URL-only: every failure is a 400 that depends on the request text and the route grammar alone, never on stored state (§2, §3 step 3).

Structs§

BadUrl
The URL is not valid under §2. Carries no detail: a 400 is URL-only.
ParsedUrl
A URL that satisfied §2.
Query
The parsed query (§2). The token is opaque here and never printed.

Enums§

RepoPrefix
Whether a repository prefix must be present. The handler always uses Self::Required (indexed mode implies Multi addressing); Omitted exists so the parser runs every single-repository golden vector.
Target
What the URL selects.

Functions§

is_http_object_path
Whether raw_path belongs to the HTTP object namespace: it contains the mandatory /-/ segment that RPC service paths never do (§2). Routers dispatch on this, never on a /grpc.* prefix glob.
parse
Parse a request’s escaped path and query per §2. The caller passes the path exactly as received: framework decoding must not reinterpret delimiters. A # anywhere is invalid.