MCPcopy Create free account
hub / github.com/compozy/agh / drainResponseBody

Function drainResponseBody

internal/cli/client.go:6326–6331  ·  view source on GitHub ↗
(method string, path string, body io.Reader)

Source from the content-addressed store, hash-verified

6324}
6325
6326func drainResponseBody(method string, path string, body io.Reader) error {
6327 if _, err := io.Copy(io.Discard, body); err != nil {
6328 return fmt.Errorf("cli: drain %s %s response: %w", method, path, err)
6329 }
6330 return nil
6331}

Callers 3

AgentTaskClaimNextMethod · 0.85
decodeJSONResponseMethod · 0.85
doSSEMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected