MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / writeResult

Function writeResult

internal/sidecar/server.go:462–468  ·  view source on GitHub ↗
(w http.ResponseWriter, value any, err error)

Source from the content-addressed store, hash-verified

460}
461
462func writeResult(w http.ResponseWriter, value any, err error) {
463 if err != nil {
464 writeError(w, http.StatusBadRequest, err.Error())
465 return
466 }
467 writeJSON(w, value)
468}
469
470func writeJSON(w http.ResponseWriter, value any) {
471 w.Header().Set("Content-Type", "application/json")

Callers 15

handleProvidersMethod · 0.85
handleProviderMethod · 0.85
handleProviderActionMethod · 0.85
handleToolsMethod · 0.85
handleMCPServersMethod · 0.85
handleMCPRegistryMethod · 0.85
handleMCPInstallMethod · 0.85
handleMCPUninstallMethod · 0.85
handleEntitiesMethod · 0.85
handleEntityUninstallMethod · 0.85
handleDoctorChecksMethod · 0.85
handleLaunchDryRunMethod · 0.85

Calls 3

writeErrorFunction · 0.85
writeJSONFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected