-
Hi everyone, Expected BehaviorRequest.extensions should work just like in the examples Current Behaviorbut it's not found in the httprequest
Steps to Reproduce (for bugs)I just updated to the last version and used actix-identity example for redis storage. Everything is ok. Just the extensions method is not found in the compile time. Your Environmentboth in Ubuntu 22 and windows server 2022
actix-web = { version = "4.4.0", features = ["openssl"] } |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
+ use actix_web::HttpMessage; |
Beta Was this translation helpful? Give feedback.
I assume you mean this line: https://github.com/actix/examples/blob/1b43dde946ea78a94aab98555a30f62bb506bdcf/auth/simple-auth-server/src/auth_handler.rs#L56
Yes, that is coming from the
HttpMessage
implementation onHttpRequest
. You just need to add theuse
line I showed above. (See it beinguse
d on line 5 of that same file here.)