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

Function decodeJSON

internal/sidecar/server.go:457–460  ·  view source on GitHub ↗
(r *http.Request, out any)

Source from the content-addressed store, hash-verified

455}
456
457func decodeJSON(r *http.Request, out any) error {
458 defer r.Body.Close()
459 return json.NewDecoder(r.Body).Decode(out)
460}
461
462func writeResult(w http.ResponseWriter, value any, err error) {
463 if err != nil {

Callers 11

handleProvidersMethod · 0.85
handleProviderMethod · 0.85
handleProviderActionMethod · 0.85
handleMCPInstallMethod · 0.85
handleMCPUninstallMethod · 0.85
handleEntityUninstallMethod · 0.85
handleInstructionsMethod · 0.85
handleInstructionItemMethod · 0.85
handleMetadataInstallMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected