aboutsummaryrefslogtreecommitdiff
path: root/src/router_option.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-07-08 05:30:21 +0000
committerFuwn <[email protected]>2025-07-08 05:30:21 +0000
commit6544d0dc7762b3ddf5d59db68629f2bd4a55650f (patch)
tree9523cccc017225cffdd599e930efb2e518eae285 /src/router_option.rs
parentdocs(router_option): Expand documentation (diff)
downloadwindmark-6544d0dc7762b3ddf5d59db68629f2bd4a55650f.tar.xz
windmark-6544d0dc7762b3ddf5d59db68629f2bd4a55650f.zip
feat(router): Add case-insensitive route matching option
Diffstat (limited to 'src/router_option.rs')
-rw-r--r--src/router_option.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/router_option.rs b/src/router_option.rs
index 62ecb47..a28ba6f 100644
--- a/src/router_option.rs
+++ b/src/router_option.rs
@@ -7,4 +7,7 @@ pub enum RouterOption {
/// 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,
}