Skip to main content

Module router

Module router 

Source
Expand description

Route registry backing automatic HEAD, automatic OPTIONS, 405 Method Not Allowed and the service description (specification sections 4.1 and 9).

Path patterns use the :parameter syntax of the JavaScript and Python implementations, so the same route table is described identically in all three languages.

Structs§

RouteDescription
One route of a service description.
RouteEntry
Every method registered on one path pattern.
RouteMeta
Description metadata attached to one method of one route.
RouteTable
The set of routes registered on an application.

Constants§

IMPLICIT_METHODS
Methods that never need to be registered explicitly.

Functions§

match_path
Match a concrete path against a pattern, capturing its path parameters.

Type Aliases§

PathParams
The path parameters captured by a match.