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

Function grpc_method_from_path

crates/openshell-server/src/multiplex.rs:723–725  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

721}
722
723fn grpc_method_from_path(path: &str) -> String {
724 path.rsplit('/').next().unwrap_or(path).to_string()
725}
726
727fn grpc_status_from_response<B>(res: &Response<B>) -> String {
728 res.headers()

Callers 1

callMethod · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected