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

Function grpc_status_from_response

crates/openshell-server/src/multiplex.rs:727–732  ·  view source on GitHub ↗
(res: &Response<B>)

Source from the content-addressed store, hash-verified

725}
726
727fn grpc_status_from_response<B>(res: &Response<B>) -> String {
728 res.headers()
729 .get("grpc-status")
730 .and_then(|v| v.to_str().ok())
731 .map_or_else(|| "0".to_string(), ToString::to_string)
732}
733
734fn normalize_http_path(path: &str) -> &'static str {
735 match path {

Callers 1

callMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected