Classes
PathSegment
4
▼
A parsed segment of a route path.
Static: ``/users`` (is_param=False)
Param: ``/{id}`` (is_p…
PathSegment
4
▼
A parsed segment of a route path.
Static:/users(is_param=False)
Param:/{id}(is_param=True, param_name="id")
Typed:/{id:int}(is_param=True, param_name="id", param_type="int")
Attributes
| Name | Type | Description |
|---|---|---|
value |
str
|
— |
is_param |
bool
|
— |
param_name |
str | None
|
— |
param_type |
str
|
— |
Route
4
▼
A frozen route definition.
Created during app setup, compiled into the router at freeze time.
Route
4
▼
A frozen route definition.
Created during app setup, compiled into the router at freeze time.
Attributes
| Name | Type | Description |
|---|---|---|
path |
str
|
— |
handler |
Callable[..., Any]
|
— |
methods |
frozenset[str]
|
— |
name |
str | None
|
— |
RouteMatch
2
▼
Result of a successful route match.
RouteMatch
2
▼
Result of a successful route match.
Attributes
| Name | Type | Description |
|---|---|---|
route |
Route
|
— |
path_params |
dict[str, str]
|
— |