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

Method from_config

crates/openshell-router/src/lib.rs:50–55  ·  view source on GitHub ↗
(config: &RouterConfig)

Source from the content-addressed store, hash-verified

48 }
49
50 pub fn from_config(config: &RouterConfig) -> Result<Self, RouterError> {
51 let resolved = config.resolve_routes()?;
52 let mut router = Self::new()?;
53 router.routes = resolved;
54 Ok(router)
55 }
56
57 /// Proxy a raw HTTP request to the first compatible route from `candidates`.
58 ///

Callers

nothing calls this directly

Calls 1

resolve_routesMethod · 0.80

Tested by

no test coverage detected