···11/// Options that can be set for the `Router`
22#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)]
33pub enum RouterOption {
44- /// Trim trailing slashes from the URL path if it is present and a route
55- /// match exists
44+ /// If enabled, removes a trailing slash from the request URL path if a route
55+ /// exists for the path without the slash (e.g., `/foo/` becomes `/foo`).
66 RemoveExtraTrailingSlash,
77- /// Add a trailing slash to the URL path if it is missing and a route
88- /// match exists
77+ /// If enabled, adds a trailing slash to the request URL path if a route
88+ /// exists for the path with the slash (e.g., `/foo` becomes `/foo/`).
99 AddMissingTrailingSlash,
1010}