2 releases (1 stable)

1.0.0 Jul 5, 2024
0.1.0 Jun 15, 2024

#31 in #handlers

Download history 107/week @ 2024-06-10 24/week @ 2024-06-17 99/week @ 2024-07-01 7/week @ 2024-07-08

73 downloads per month
Used in leptos_reactive_axum

MIT license

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

~285–740KB
~18K SLoC