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

Method handle

crates/openshell-sandbox/src/google_cloud_metadata.rs:52–60  ·  view source on GitHub ↗
(
        &self,
        method: &str,
        path: &str,
        request: &[u8],
        stream: &mut S,
    )

Source from the content-addressed store, hash-verified

50
51impl crate::metadata_server::MetadataHandler for MetadataContext {
52 async fn handle<S: AsyncRead + AsyncWrite + Unpin + Send>(
53 &self,
54 method: &str,
55 path: &str,
56 request: &[u8],
57 stream: &mut S,
58 ) -> Result<()> {
59 handle_forward_request(self, method, path, request, stream).await
60 }
61}
62
63async fn handle_forward_request<S>(

Callers 4

shell_requestMethod · 0.80
exec_requestMethod · 0.80
subsystem_requestMethod · 0.80
handle_connectionFunction · 0.80

Calls 1

handle_forward_requestFunction · 0.70

Tested by

no test coverage detected