sharing request data with the resolvers with the FromRequest trait #1012
Labels
k::integration
Related to integration with third-party libraries or systems
lib::rocket
Related to `rocket` crate integration
support
Milestone
Hi all,
can anyone help get my head around the FromRequest trait.
As I understand, we can use it to share data with the resolvers.
I'm trying to inject the http headers so I can authenticate users before some actions in the resolvers.
See my code below.
Looks like the from_request isn't even called.
I'm using rocket 0.5.rc1
Thank you for your help
The text was updated successfully, but these errors were encountered: