2 releases (1 stable)

1.0.0 Jul 5, 2024
0.1.0 Jun 15, 2024

#960 in HTTP server

Download history 124/week @ 2024-06-14 10/week @ 2024-06-21 101/week @ 2024-07-05 2/week @ 2024-07-12

74 downloads per month

MIT license

7KB
77 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

~8–12MB
~204K SLoC