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

Method new_transform

middleware/http-response/src/simple.rs:42–46  ·  view source on GitHub ↗
(&self, service: S)

Source from the content-addressed store, hash-verified

40 type Future = Ready<Result<Self::Transform, Self::InitError>>;
41
42 fn new_transform(&self, service: S) -> Self::Future {
43 ready(Ok(AuthMiddleware {
44 service: Rc::new(service),
45 }))
46 }
47}
48
49pub struct AuthMiddleware<S> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected