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

Function isTransientWriteError

source/core/index.ts:220–223  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

218 || (is.iterable(body) && (body[Symbol.iterator]() as unknown) === body);
219
220const isTransientWriteError = (error: Error): boolean => {
221 const {code} = error;
222 return typeof code === 'string' && transientWriteErrorCodes.has(code);
223};
224
225const getConnectionListedHeaders = (headers: Record<string, string | string[] | undefined>): Set<string> => {
226 const connectionListedHeaders = new Set<string>();

Callers 2

_onRequestMethod · 0.85
_writeBodyInChunksMethod · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…