MCPcopy Create free account
hub / github.com/apify/impit / isRedirectStatus

Function isRedirectStatus

impit-node/index.wrapper.js:42–44  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

40}
41
42function isRedirectStatus(status) {
43 return [301, 302, 303, 307, 308].includes(status);
44}
45
46// Stream chunks may be strings (e.g. a ReadableStream or Node stream that wasn't
47// fed bytes); encode them so they aren't coerced to zero bytes by Uint8Array.set.

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…