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

Function sandbox_service_routing_first

crates/openshell-server/src/http.rs:200–211  ·  view source on GitHub ↗
(
    State(state): State<Arc<crate::ServerState>>,
    req: Request,
    next: Next,
)

Source from the content-addressed store, hash-verified

198}
199
200async fn sandbox_service_routing_first(
201 State(state): State<Arc<crate::ServerState>>,
202 req: Request,
203 next: Next,
204) -> impl IntoResponse {
205 if crate::service_routing::is_sandbox_service_request(&req, &state.config.service_routing) {
206 return crate::service_routing::proxy_sandbox_service_request(state, req)
207 .await
208 .into_response();
209 }
210 next.run(req).await.into_response()
211}
212
213async fn sandbox_service_routing_only(
214 State(state): State<Arc<crate::ServerState>>,

Callers

nothing calls this directly

Calls 4

into_responseMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected