3 releases (stable)

1.0.1 Oct 20, 2024
1.0.0 Jul 5, 2024
0.1.0 Jun 15, 2024

#1113 in HTTP server

Download history 6/week @ 2024-09-10 4/week @ 2024-09-17 10/week @ 2024-09-24 1/week @ 2024-10-08 152/week @ 2024-10-15 28/week @ 2024-10-22 3/week @ 2024-11-05

184 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–16MB
~205K SLoC