MCPcopy Create free account
hub / github.com/hashintel/hash / start_rest_server

Function start_rest_server

apps/hash-graph/src/subcommand/server.rs:249–254  ·  view source on GitHub ↗
(router: axum::Router, address: HttpAddress, lifecycle: &ServerLifecycle)

Source from the content-addressed store, hash-verified

247}
248
249fn start_rest_server(router: axum::Router, address: HttpAddress, lifecycle: &ServerLifecycle) {
250 let shutdown = lifecycle.shutdown.clone();
251 lifecycle.spawn("REST server", async move {
252 run_rest_server(router, address, shutdown).await
253 });
254}
255
256fn start_rpc_server<S>(
257 address: RpcAddress,

Callers 1

start_serverFunction · 0.85

Calls 3

run_rest_serverFunction · 0.85
cloneMethod · 0.45
spawnMethod · 0.45

Tested by

no test coverage detected