Skip to content

Can't get the middleware example to work #2400

Answered by robjtede
beowulf1416 asked this question in Q&A
Discussion options

You must be logged in to vote

I suspect you're using the v4 beta which uses a slightly tweaked Service trait. See docs for it here: https://docs.rs/actix-service/2.0.1/actix_service/trait.Service.html. Also read the build-in middleware for some extra guidance: https://github.com/actix/actix-web/tree/master/src/middleware.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by beowulf1416
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
Converted from issue

This discussion was converted from issue #2399 on October 11, 2021 13:51.