DSL for creating RouterConfig.
Instead creating an instance of this yourself, use RouterConfigDsl.apply.
- Companion:
- object
Type members
Value members
Concrete methods
Captures the (non-empty) remaining portion of the URL path.
Captures the (non-empty) remaining portion of the URL path.
Captures the (potentially-empty) remaining portion of the URL path.
Captures the (potentially-empty) remaining portion of the URL path.
A rule that uses a replace-state redirect to remove leading slashes from route URLs.
A rule that uses a replace-state redirect to remove leading slashes from route URLs.
A rule that uses a replace-state redirect to remove trailing slashes from route URLs.
A rule that uses a replace-state redirect to remove trailing slashes from route URLs.
Matches a string.
Matches a string.
Best to use a whitelist of characters, eg. "[a-zA-Z0-9]+". Do not capture groups; use "[a-z]+" instead of "([a-z]+)". If you need to group, use non-capturing groups like "(?:bye|hello)" instead of "(bye|hello)".
Concrete fields
Captures the query portion of the URL to a param map.
Captures the query portion of the URL to a param map.
Note that this is not a strict capture, URLs without a query string will still be accepted, and the parameter map will simply by empty.
Captures the query portion of the URL to a param multimap.
Captures the query portion of the URL to a param multimap.
Note that this is not a strict capture, URLs without a query string will still be accepted, and the parameter map will simply by empty.