MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / status_for

Function status_for

nodedb/src/control/server/http/server.rs:379–386  ·  view source on GitHub ↗
(router: &Router, method: Method, path: &str)

Source from the content-addressed store, hash-verified

377 }
378
379 async fn status_for(router: &Router, method: Method, path: &str) -> StatusCode {
380 let req = Request::builder()
381 .method(method)
382 .uri(path)
383 .body(Body::empty())
384 .unwrap();
385 router.clone().oneshot(req).await.unwrap().status()
386 }
387
388 #[tokio::test]
389 async fn probe_paths_unversioned() {

Callers

nothing calls this directly

Calls 3

statusMethod · 0.80
emptyFunction · 0.50
cloneMethod · 0.45

Tested by

no test coverage detected