🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(router_option): Expand documentation

Fuwn 74ce57c0 1381dfc9

+4 -4
+4 -4
src/router_option.rs
··· 1 1 /// Options that can be set for the `Router` 2 2 #[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] 3 3 pub enum RouterOption { 4 - /// Trim trailing slashes from the URL path if it is present and a route 5 - /// match exists 4 + /// If enabled, removes a trailing slash from the request URL path if a route 5 + /// exists for the path without the slash (e.g., `/foo/` becomes `/foo`). 6 6 RemoveExtraTrailingSlash, 7 - /// Add a trailing slash to the URL path if it is missing and a route 8 - /// match exists 7 + /// If enabled, adds a trailing slash to the request URL path if a route 8 + /// exists for the path with the slash (e.g., `/foo` becomes `/foo/`). 9 9 AddMissingTrailingSlash, 10 10 }