MCPcopy
hub / github.com/anomalyco/opencode / describe

Function describe

packages/sdk/js/src/error-interceptor.ts:45–51  ·  view source on GitHub ↗
(request: Request | undefined, response: Response | undefined)

Source from the content-addressed store, hash-verified

43}
44
45function describe(request: Request | undefined, response: Response | undefined) {
46 const method = request?.method ?? "?"
47 const url = request?.url ?? "?"
48 const status = response?.status
49 const statusText = response?.statusText
50 return `${method} ${url}${status ? " → " + status : ""}${statusText ? " " + statusText : ""}`
51}

Calls

no outgoing calls

Tested by

no test coverage detected