MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / combineDataWithResponse

Function combineDataWithResponse

client/src/utils/ajax.ts:54–57  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

52}
53
54async function combineDataWithResponse<T>(response: Response) {
55 const data = (await response.json()) as T;
56 return { response, data };
57}
58
59export function post<T = void>(
60 path: string,

Callers 2

getFunction · 0.85
requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected