Skip to content

.extensions() method not found in HttpRequest #3204

Answered by robjtede
mohd109 asked this question in General
Discussion options

You must be logged in to vote

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 on HttpRequest. You just need to add the use line I showed above. (See it being used on line 5 of that same file here.)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mohd109
Comment options

@robjtede
Comment options

Answer selected by mohd109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3203 on November 26, 2023 18:41.