MCPcopy Create free account
hub / github.com/callstack/agent-device / isUploadRedirectStatus

Function isUploadRedirectStatus

src/upload-stream.ts:227–229  ·  view source on GitHub ↗
(statusCode: number)

Source from the content-addressed store, hash-verified

225}
226
227function isUploadRedirectStatus(statusCode: number): boolean {
228 return [301, 302, 303, 307, 308].includes(statusCode);
229}
230
231function isUploadResumeStatus(statusCode: number): boolean {
232 return statusCode === 308;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…