MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / getResponseHeader

Function getResponseHeader

frontend/openAPI/generated/core/request.ts:222–230  ·  view source on GitHub ↗
(response: Response, responseHeader?: string)

Source from the content-addressed store, hash-verified

220};
221
222export const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {
223 if (responseHeader) {
224 const content = response.headers.get(responseHeader);
225 if (isString(content)) {
226 return content;
227 }
228 }
229 return undefined;
230};
231
232export const getResponseBody = async (response: Response): Promise<any> => {
233 if (response.status !== 204) {

Callers 1

requestFunction · 0.85

Calls 1

isStringFunction · 0.85

Tested by

no test coverage detected