gufo.thor.route¶
HTTP route definition.
Route
dataclass
¶
Route configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Service name. |
prefix |
str
|
HTTP prefix. |
disable_auth |
bool
|
Disable external authorization. |
prefix_rewrite |
str | None
|
Rewrite prefix, if set. |
redirect_to |
str | None
|
Redirect to path, if matched. |
no_cache |
bool
|
Add headers which disable caching. |
is_service |
bool
|
Expose to |
cluster
property
¶
Get cluster name.