MCPcopy Create free account
hub / github.com/SecureAI-Tools/SecureAI-Tools / parseResponseHeaders

Function parseResponseHeaders

apps/web/lib/fe/api.ts:140–146  ·  view source on GitHub ↗
(res: Response)

Source from the content-addressed store, hash-verified

138}
139
140const parseResponseHeaders = (res: Response): ResponseHeaders => {
141 return {
142 pagination: {
143 totalCount: parseInteger(res.headers.get(HEADER_PAGINATION_TOTAL_COUNT)),
144 },
145 };
146};

Callers 1

makeRequestFunction · 0.85

Calls 2

parseIntegerFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected