-
I have an axum layer (tower) that validates and extracts information from the request and transforms it. The straight forward axum way would be to add the data to the request extension and retrieve that data in the axum handler. But how would I retrieve this data in a socketioxide handler? |
Beta Was this translation helpful? Give feedback.
Answered by
Totodore
Aug 22, 2024
Replies: 1 comment
-
You can use the Otherwise you can also use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mcmah309
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
HttpExtension
extractor to directly extract your extension data (but it will be by clone).Otherwise you can also use the
req_parts
fn on the socket ref to get the extension map.