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

Function isContentType

packages/client/src/generated/client.ts:1027–1029  ·  view source on GitHub ↗
(response: Response, expected: string)

Source from the content-addressed store, hash-verified

1025}
1026
1027function isContentType(response: Response, expected: string) {
1028 return response.headers.get("content-type")?.split(";", 1)[0]?.trim().toLowerCase() === expected
1029}

Callers 2

[Symbol.asyncIterator]Function · 0.85
jsonFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected