MCPcopy Create free account
hub / github.com/InferCore/InferCore / health

Method health

internal/server/server.go:199–203  ·  view source on GitHub ↗
(w http.ResponseWriter, _ *http.Request)

Source from the content-addressed store, hash-verified

197}
198
199func (s *Server) health(w http.ResponseWriter, _ *http.Request) {
200 writeJSON(w, http.StatusOK, map[string]string{
201 "status": "ok",
202 })
203}
204
205func (s *Server) status(w http.ResponseWriter, r *http.Request) {
206 health := s.cachedBackendHealth(r.Context())

Callers

nothing calls this directly

Calls 1

writeJSONFunction · 0.85

Tested by

no test coverage detected