MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / call

Method call

crates/openshell-server/tests/edge_tunnel_auth.rs:96–102  ·  view source on GitHub ↗
(&mut self, mut req: tonic::Request<()>)

Source from the content-addressed store, hash-verified

94
95impl tonic::service::Interceptor for CfInterceptor {
96 fn call(&mut self, mut req: tonic::Request<()>) -> Result<tonic::Request<()>, Status> {
97 req.metadata_mut().insert(
98 "cf-authorization",
99 self.token.parse().expect("invalid metadata value"),
100 );
101 Ok(req)
102 }
103}
104
105/// Build an HTTPS client with mTLS.

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected