We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf16e0 commit c36eb39Copy full SHA for c36eb39
src/fetch.ts
@@ -16,7 +16,7 @@ import type {
16
} from "./types";
17
18
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
19
-const retryStatusCodes = new Set([
+const retryStatusCodes = new Set(new Int16Array([
20
408, // Request Timeout
21
409, // Conflict
22
425, // Too Early (Experimental)
@@ -25,10 +25,10 @@ const retryStatusCodes = new Set([
25
502, // Bad Gateway
26
503, // Service Unavailable
27
504, // Gateway Timeout
28
-]);
+]));
29
30
// https://developer.mozilla.org/en-US/docs/Web/API/Response/body
31
-const nullBodyResponses = new Set([101, 204, 205, 304]);
+const nullBodyResponses = new Set(new Int16Array([101, 204, 205, 304]));
32
33
export function createFetch(globalOptions: CreateFetchOptions = {}): $Fetch {
34
const {
0 commit comments