blob: a28ba6f1ecd0be857d7488fe1169d5071b9fcdd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/// Options that can be set for the `Router`
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)]
pub enum RouterOption {
/// If enabled, removes a trailing slash from the request URL path if a route
/// exists for the path without the slash (e.g., `/foo/` becomes `/foo`).
RemoveExtraTrailingSlash,
/// If enabled, adds a trailing slash to the request URL path if a route
/// exists for the path with the slash (e.g., `/foo` becomes `/foo/`).
AddMissingTrailingSlash,
/// If enabled, the router will perform case-insensitive matching for
/// incoming request URL paths (e.g., `/foo` will match `/Foo` or `/FOO`).
AllowCaseInsensitiveLookup,
}
|