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.
- Parsed
Url - A URL that satisfied §2.
- Query
- The parsed query (§2). The token is opaque here and never printed.
Enums§
- Repo
Prefix - Whether a repository prefix must be present. The handler always uses
Self::Required(indexed mode implies Multi addressing);Omittedexists so the parser runs every single-repository golden vector. - Target
- What the URL selects.
Functions§
- is_
http_ object_ path - Whether
raw_pathbelongs 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.