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

Function reqwest_verify

crates/openshell-router/src/backend.rs:1602–1606  ·  view source on GitHub ↗

Helper: run `verify_backend_endpoint` and return the expected failure.

(route: &ResolvedRoute)

Source from the content-addressed store, hash-verified

1600
1601 /// Helper: run `verify_backend_endpoint` and return the expected failure.
1602 async fn reqwest_verify(route: &ResolvedRoute) -> ValidationFailure {
1603 verify_backend_endpoint(&reqwest::Client::new(), route)
1604 .await
1605 .expect_err("validation should fail")
1606 }
1607
1608 /// Non-chat-completions probes (e.g. `anthropic_messages`) should not
1609 /// have a fallback — a 400 remains a hard failure.

Calls 1

verify_backend_endpointFunction · 0.85

Tested by

no test coverage detected