MCPcopy Create free account
hub / github.com/EsperoTech/yaade / getContentType

Function getContentType

client/src/utils/parseResponseEvent.tsx:13–14  ·  view source on GitHub ↗
(headers: Array<KVRow>)

Source from the content-addressed store, hash-verified

11}
12
13const getContentType = (headers: Array<KVRow>) =>
14 headers.find((header) => header.key.toLowerCase() === 'content-type')?.value ?? '';
15
16function parseResponse(res: any): RestResponse {
17 const headers: Array<KVRow> = res.headers;

Callers 1

parseResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected