Skip to content
Discussion options

You must be logged in to vote

In your middleware you’ll wanna add additional data as request extensions and extract those in the handler. See https://docs.rs/axum/latest/axum/middleware/index.html#passing-state-from-middleware-to-handlers

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cometw
Comment options

@davidpdrsn
Comment options

@cometw
Comment options

Answer selected by cometw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants