MCPcopy
hub / github.com/sindresorhus/got / cacheDecodedBody

Function cacheDecodedBody

source/core/response.ts:154–156  ·  view source on GitHub ↗
(response: PlainResponse, decodedBody: string)

Source from the content-addressed store, hash-verified

152}
153
154export const cacheDecodedBody = (response: PlainResponse, decodedBody: string): void => {
155 decodedBodyCache.set(response, decodedBody);
156};
157
158export const parseBody = (response: Response, responseType: ResponseType, parseJson: ParseJsonFunction, encoding?: BufferEncoding): unknown => {
159 const {rawBody} = response;

Callers 1

_setRawBodyMethod · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…