🏗️ 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): Update options-related documentation

Fuwn 55a95734 6544d0dc

+4 -4
+4 -4
src/router.rs
··· 864 864 /// } 865 865 /// } 866 866 /// 867 - /// Router::new().attach_async(Clicker::default()); 867 + /// // Router::new().attach_async(Clicker::default()); 868 868 /// ``` 869 869 pub fn attach_async( 870 870 &mut self, ··· 1004 1004 /// use windmark::router_option::RouterOption; 1005 1005 /// 1006 1006 /// windmark::router::Router::new() 1007 - /// .add_options(&[RouterOption::TrimTrailingSlashes]); 1007 + /// .add_options(&[RouterOption::RemoveExtraTrailingSlash]); 1008 1008 /// ``` 1009 1009 pub fn add_options(&mut self, options: &[RouterOption]) -> &mut Self { 1010 1010 for option in options { ··· 1022 1022 /// use windmark::router_option::RouterOption; 1023 1023 /// 1024 1024 /// windmark::router::Router::new() 1025 - /// .toggle_options(&[RouterOption::TrimTrailingSlashes]); 1025 + /// .toggle_options(&[RouterOption::RemoveExtraTrailingSlash]); 1026 1026 /// ``` 1027 1027 pub fn toggle_options(&mut self, options: &[RouterOption]) -> &mut Self { 1028 1028 for option in options { ··· 1044 1044 /// use windmark::router_option::RouterOption; 1045 1045 /// 1046 1046 /// windmark::router::Router::new() 1047 - /// .remove_options(&[RouterOption::TrimTrailingSlashes]); 1047 + /// .remove_options(&[RouterOption::RemoveExtraTrailingSlash]); 1048 1048 /// ``` 1049 1049 pub fn remove_options(&mut self, options: &[RouterOption]) -> &mut Self { 1050 1050 for option in options {