3 releases (stable)
1.0.1 | Oct 20, 2024 |
---|---|
1.0.0 | Jul 5, 2024 |
0.1.0 | Jun 15, 2024 |
#28 in #handlers
190 downloads per month
Used in leptos_reactive_axum
5KB
76 lines
whoami
Library providing utilities for using leptos_reactive runtime inside axum handlers. Also automaticly uses provide_context to make the request Parts available inside any function called by the handler.
But why?
When using something like the rstml-component crate it is usefull to be able to extract anything from parts inside any component. For example inside nav bar extract the path to be able to highlight active route. Additionally you can create a middleware layer that can add to the context things like IsLoggedIn or other information about the request that is used within more then one function/component called by the handler.
Dependencies
~245–700KB
~17K SLoC