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

Function json_response

crates/openshell-cli/src/auth.rs:289–295  ·  view source on GitHub ↗
(
    status: StatusCode,
    allowed_origin: Option<&str>,
    body: &'static str,
)

Source from the content-addressed store, hash-verified

287}
288
289fn json_response(
290 status: StatusCode,
291 allowed_origin: Option<&str>,
292 body: &'static str,
293) -> CallbackResponse {
294 callback_response(status, allowed_origin, Some("application/json"), body)
295}
296
297async fn handle_callback_request(
298 req: Request<Incoming>,

Callers 1

handle_callback_requestFunction · 0.85

Calls 1

callback_responseFunction · 0.85

Tested by

no test coverage detected