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

Function queryDefault

internal/sidecar/server.go:449–455  ·  view source on GitHub ↗
(r *http.Request, key, fallback string)

Source from the content-addressed store, hash-verified

447}
448
449func queryDefault(r *http.Request, key, fallback string) string {
450 value := r.URL.Query().Get(key)
451 if value == "" {
452 return fallback
453 }
454 return value
455}
456
457func decodeJSON(r *http.Request, out any) error {
458 defer r.Body.Close()

Callers 3

handleMCPServersMethod · 0.85
handleMCPRegistryMethod · 0.85
handleEntitiesMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected