MCPcopy Create free account
hub / github.com/HFQR/xitca-web / call

Method call

examples/auth/src/utils/error.rs:27–33  ·  view source on GitHub ↗
(&self, ctx: WebContext<'_, C>)

Source from the content-addressed store, hash-verified

25 type Error = std::convert::Infallible;
26
27 async fn call(&self, ctx: WebContext<'_, C>) -> Result<Self::Response, Self::Error> {
28 let res = StatusCode::INTERNAL_SERVER_ERROR
29 .respond(ctx)
30 .await
31 .expect("predetermined response generator pattern can not fail");
32 Ok(res)
33 }
34}
35
36/// Collection of error happens during authentication

Callers 1

error_handlerFunction · 0.45

Calls 1

respondMethod · 0.45

Tested by

no test coverage detected