MCPcopy Create free account
hub / github.com/actix/examples / AuthMiddleware

Class AuthMiddleware

middleware/http-response/src/simple.rs:49–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49pub struct AuthMiddleware<S> {
50 // This is special: We need this to avoid lifetime issues.
51 service: Rc<S>,
52}
53
54impl<S> Service<ServiceRequest> for AuthMiddleware<S>
55where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected