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

Method call

middleware/various/src/simple.rs:51–62  ·  view source on GitHub ↗
(&self, req: ServiceRequest)

Source from the content-addressed store, hash-verified

49 dev::forward_ready!(service);
50
51 fn call(&self, req: ServiceRequest) -> Self::Future {
52 println!("Hi from start. You requested: {}", req.path());
53
54 let fut = self.service.call(req);
55
56 Box::pin(async move {
57 let res = fut.await?;
58
59 println!("Hi from response");
60 Ok(res)
61 })
62 }
63}

Callers 7

cache_middlewareFunction · 0.45
encrypt_payloadsFunction · 0.45
timeout_10secsFunction · 0.45
test_add_productFunction · 0.45
test_indexFunction · 0.45
test_indexFunction · 0.45
request_telemetryFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_add_productFunction · 0.36
test_indexFunction · 0.36
test_indexFunction · 0.36