mphttpx 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/global.js +1 -0
- package/dist/index.cjs.js +2349 -0
- package/dist/index.cjs.min.js +1 -0
- package/dist/index.d.ts +823 -0
- package/dist/index.esm.js +2312 -0
- package/dist/index.esm.min.js +1 -0
- package/dist/types/AbortControllerP.d.ts +20 -0
- package/dist/types/AbortSignalP.d.ts +37 -0
- package/dist/types/BlobP.d.ts +30 -0
- package/dist/types/BodyP.d.ts +33 -0
- package/dist/types/CustomEventP.d.ts +21 -0
- package/dist/types/EventP.d.ts +64 -0
- package/dist/types/EventTargetP.d.ts +37 -0
- package/dist/types/FileP.d.ts +23 -0
- package/dist/types/FileReaderP.d.ts +67 -0
- package/dist/types/FormDataP.d.ts +37 -0
- package/dist/types/HeadersP.d.ts +31 -0
- package/dist/types/ProgressEventP.d.ts +24 -0
- package/dist/types/RequestP.d.ts +45 -0
- package/dist/types/ResponseP.d.ts +39 -0
- package/dist/types/TextDecoderP.d.ts +31 -0
- package/dist/types/TextEncoderP.d.ts +15 -0
- package/dist/types/URLSearchParamsP.d.ts +31 -0
- package/dist/types/XMLHttpRequestEventTargetP.d.ts +47 -0
- package/dist/types/XMLHttpRequestP.d.ts +94 -0
- package/dist/types/XMLHttpRequestUploadP.d.ts +10 -0
- package/dist/types/fetchP.d.ts +3 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/isPolyfill.d.ts +9 -0
- package/dist/types/platform.d.ts +4 -0
- package/dist/types/request.d.ts +362 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
declare class TextEncoderP implements TextEncoder {
|
|
2
|
+
get encoding(): string;
|
|
3
|
+
encode(input?: string): Uint8Array<ArrayBuffer>;
|
|
4
|
+
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
5
|
+
toString(): string;
|
|
6
|
+
get isPolyfill(): {
|
|
7
|
+
symbol: symbol;
|
|
8
|
+
hierarchy: string[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
declare const TextEncoderE: {
|
|
12
|
+
new (): TextEncoder;
|
|
13
|
+
prototype: TextEncoder;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
declare const state$9: unique symbol;
|
|
17
|
+
declare class TextDecoderP implements TextDecoder {
|
|
18
|
+
constructor(utfLabel?: string, { fatal, ignoreBOM }?: {
|
|
19
|
+
fatal?: boolean | undefined;
|
|
20
|
+
ignoreBOM?: boolean | undefined;
|
|
21
|
+
});
|
|
22
|
+
[state$9]: TextDecoderState;
|
|
23
|
+
get encoding(): string;
|
|
24
|
+
get fatal(): boolean;
|
|
25
|
+
get ignoreBOM(): boolean;
|
|
26
|
+
decode(buffer?: TAllowSharedBufferSource, { stream }?: {
|
|
27
|
+
stream?: boolean | undefined;
|
|
28
|
+
}): string;
|
|
29
|
+
toString(): string;
|
|
30
|
+
get isPolyfill(): {
|
|
31
|
+
symbol: symbol;
|
|
32
|
+
hierarchy: string[];
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
declare class TextDecoderState {
|
|
36
|
+
fatal: boolean;
|
|
37
|
+
ignoreBOM: boolean;
|
|
38
|
+
_bomSeen: boolean;
|
|
39
|
+
_partial: number[];
|
|
40
|
+
}
|
|
41
|
+
type TAllowSharedBufferSource = NonNullable<Parameters<TextDecoder["decode"]>[0]>;
|
|
42
|
+
declare const TextDecoderE: {
|
|
43
|
+
new (label?: string, options?: TextDecoderOptions): TextDecoder;
|
|
44
|
+
prototype: TextDecoder;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare const state$8: unique symbol;
|
|
48
|
+
|
|
49
|
+
declare class EventP implements Event {
|
|
50
|
+
static readonly NONE = 0;
|
|
51
|
+
static readonly CAPTURING_PHASE = 1;
|
|
52
|
+
static readonly AT_TARGET = 2;
|
|
53
|
+
static readonly BUBBLING_PHASE = 3;
|
|
54
|
+
constructor(type: string, eventInitDict?: EventInit);
|
|
55
|
+
[state$8]: EventState;
|
|
56
|
+
get type(): string;
|
|
57
|
+
get bubbles(): boolean;
|
|
58
|
+
get cancelable(): boolean;
|
|
59
|
+
get composed(): boolean;
|
|
60
|
+
get target(): EventTarget | null;
|
|
61
|
+
get currentTarget(): EventTarget | null;
|
|
62
|
+
get eventPhase(): number;
|
|
63
|
+
readonly NONE = 0;
|
|
64
|
+
readonly CAPTURING_PHASE = 1;
|
|
65
|
+
readonly AT_TARGET = 2;
|
|
66
|
+
readonly BUBBLING_PHASE = 3;
|
|
67
|
+
get srcElement(): EventTarget | null;
|
|
68
|
+
cancelBubble: boolean;
|
|
69
|
+
get defaultPrevented(): boolean;
|
|
70
|
+
get returnValue(): boolean;
|
|
71
|
+
set returnValue(value: boolean);
|
|
72
|
+
get isTrusted(): boolean;
|
|
73
|
+
get timeStamp(): number;
|
|
74
|
+
composedPath(): EventTarget[];
|
|
75
|
+
initEvent: (type: string, bubbles?: boolean, cancelable?: boolean) => void;
|
|
76
|
+
preventDefault: () => void;
|
|
77
|
+
stopImmediatePropagation: () => void;
|
|
78
|
+
stopPropagation(): void;
|
|
79
|
+
toString(): string;
|
|
80
|
+
get isPolyfill(): {
|
|
81
|
+
symbol: symbol;
|
|
82
|
+
hierarchy: string[];
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
declare class EventState {
|
|
86
|
+
static TimeStamp: number;
|
|
87
|
+
type: string;
|
|
88
|
+
bubbles: boolean;
|
|
89
|
+
cancelable: boolean;
|
|
90
|
+
composed: boolean;
|
|
91
|
+
target: EventTarget | null;
|
|
92
|
+
currentTarget: EventTarget | null;
|
|
93
|
+
eventPhase: number;
|
|
94
|
+
defaultPrevented: boolean;
|
|
95
|
+
returnValue: boolean;
|
|
96
|
+
isTrusted: boolean;
|
|
97
|
+
timeStamp: number;
|
|
98
|
+
_passive: boolean;
|
|
99
|
+
_dispatched: boolean;
|
|
100
|
+
_preventDefaultCalled: boolean;
|
|
101
|
+
_stopImmediatePropagationCalled: boolean;
|
|
102
|
+
}
|
|
103
|
+
declare const EventE: {
|
|
104
|
+
new (type: string, eventInitDict?: EventInit): Event;
|
|
105
|
+
prototype: Event;
|
|
106
|
+
readonly NONE: 0;
|
|
107
|
+
readonly CAPTURING_PHASE: 1;
|
|
108
|
+
readonly AT_TARGET: 2;
|
|
109
|
+
readonly BUBBLING_PHASE: 3;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
declare const state$7: unique symbol;
|
|
113
|
+
|
|
114
|
+
declare class EventTargetP implements EventTarget {
|
|
115
|
+
constructor();
|
|
116
|
+
[state$7]: EventTargetState;
|
|
117
|
+
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
118
|
+
dispatchEvent(event: Event): boolean;
|
|
119
|
+
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
120
|
+
toString(): string;
|
|
121
|
+
get isPolyfill(): {
|
|
122
|
+
symbol: symbol;
|
|
123
|
+
hierarchy: string[];
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
declare class EventTargetState {
|
|
127
|
+
constructor(target: EventTargetP);
|
|
128
|
+
target: EventTargetP;
|
|
129
|
+
executors: Executor[];
|
|
130
|
+
fire(event: EventP): boolean;
|
|
131
|
+
reply(signal: AbortSignal, executor: Executor): void;
|
|
132
|
+
}
|
|
133
|
+
declare class Executor {
|
|
134
|
+
static extract(cb: EventListenerOrEventListenerObject | null): EventListener | null;
|
|
135
|
+
constructor(type: string, callback: EventListenerOrEventListenerObject | null);
|
|
136
|
+
type: string;
|
|
137
|
+
callback: EventListener | null;
|
|
138
|
+
options: AddEventListenerOptions;
|
|
139
|
+
equals(executor: Executor): boolean;
|
|
140
|
+
}
|
|
141
|
+
declare const EventTargetE: {
|
|
142
|
+
new (): EventTarget;
|
|
143
|
+
prototype: EventTarget;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
declare const state$6: unique symbol;
|
|
147
|
+
declare class CustomEventP<T> extends EventP implements CustomEvent {
|
|
148
|
+
constructor(type: string, eventInitDict?: CustomEventInit<T>);
|
|
149
|
+
[state$6]: CustomEventState;
|
|
150
|
+
get detail(): T;
|
|
151
|
+
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
152
|
+
toString(): string;
|
|
153
|
+
get isPolyfill(): {
|
|
154
|
+
symbol: symbol;
|
|
155
|
+
hierarchy: string[];
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
declare class CustomEventState {
|
|
159
|
+
detail: unknown;
|
|
160
|
+
}
|
|
161
|
+
declare const CustomEventE: {
|
|
162
|
+
new <T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
|
|
163
|
+
prototype: CustomEvent;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
declare const state$5: unique symbol;
|
|
167
|
+
declare class ProgressEventP extends EventP implements ProgressEvent {
|
|
168
|
+
constructor(type: string, eventInitDict?: ProgressEventInit);
|
|
169
|
+
[state$5]: ProgressEventState;
|
|
170
|
+
get lengthComputable(): boolean;
|
|
171
|
+
get loaded(): number;
|
|
172
|
+
get total(): number;
|
|
173
|
+
toString(): string;
|
|
174
|
+
get isPolyfill(): {
|
|
175
|
+
symbol: symbol;
|
|
176
|
+
hierarchy: string[];
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
declare class ProgressEventState {
|
|
180
|
+
lengthComputable: boolean;
|
|
181
|
+
loaded: number;
|
|
182
|
+
total: number;
|
|
183
|
+
}
|
|
184
|
+
declare const ProgressEventE: {
|
|
185
|
+
new (type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
|
|
186
|
+
prototype: ProgressEvent;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
declare class BlobP implements Blob {
|
|
190
|
+
constructor(blobParts?: BlobPart[], options?: BlobPropertyBag);
|
|
191
|
+
[state$8]: BlobState;
|
|
192
|
+
get size(): number;
|
|
193
|
+
get type(): string;
|
|
194
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
195
|
+
bytes(): Promise<TUint8ArrayOfArrayBuffer>;
|
|
196
|
+
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
197
|
+
stream(): ReadableStream<TUint8ArrayOfArrayBuffer>;
|
|
198
|
+
text(): Promise<string>;
|
|
199
|
+
toString(): string;
|
|
200
|
+
get isPolyfill(): {
|
|
201
|
+
symbol: symbol;
|
|
202
|
+
hierarchy: string[];
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
declare class BlobState {
|
|
206
|
+
constructor(buffer: TUint8ArrayOfArrayBuffer);
|
|
207
|
+
size: number;
|
|
208
|
+
type: string;
|
|
209
|
+
_u8array: TUint8ArrayOfArrayBuffer;
|
|
210
|
+
}
|
|
211
|
+
type TUint8ArrayOfArrayBuffer = ReturnType<TextEncoder["encode"]>;
|
|
212
|
+
declare const BlobE: {
|
|
213
|
+
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
|
|
214
|
+
prototype: Blob;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
declare const state$4: unique symbol;
|
|
218
|
+
declare class FileP extends BlobP implements File {
|
|
219
|
+
constructor(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag);
|
|
220
|
+
[state$4]: FileState;
|
|
221
|
+
get lastModified(): number;
|
|
222
|
+
get name(): string;
|
|
223
|
+
get webkitRelativePath(): string;
|
|
224
|
+
toString(): string;
|
|
225
|
+
get isPolyfill(): {
|
|
226
|
+
symbol: symbol;
|
|
227
|
+
hierarchy: string[];
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
declare class FileState {
|
|
231
|
+
lastModified: number;
|
|
232
|
+
name: string;
|
|
233
|
+
}
|
|
234
|
+
declare const FileE: {
|
|
235
|
+
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
|
|
236
|
+
prototype: File;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
declare const state$3: unique symbol;
|
|
240
|
+
declare class FileReaderP extends EventTargetP implements FileReader {
|
|
241
|
+
static readonly EMPTY = 0;
|
|
242
|
+
static readonly LOADING = 1;
|
|
243
|
+
static readonly DONE = 2;
|
|
244
|
+
constructor();
|
|
245
|
+
[state$3]: FileReaderState;
|
|
246
|
+
get readyState(): 0 | 1 | 2;
|
|
247
|
+
get result(): string | ArrayBuffer | null;
|
|
248
|
+
readonly EMPTY = 0;
|
|
249
|
+
readonly LOADING = 1;
|
|
250
|
+
readonly DONE = 2;
|
|
251
|
+
get error(): DOMException | null;
|
|
252
|
+
abort(): void;
|
|
253
|
+
readAsArrayBuffer: (blob: Blob) => void;
|
|
254
|
+
readAsBinaryString: (blob: Blob) => void;
|
|
255
|
+
readAsDataURL: (blob: Blob) => void;
|
|
256
|
+
readAsText: (blob: Blob, encoding?: string) => void;
|
|
257
|
+
get onabort(): ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
258
|
+
set onabort(value: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null);
|
|
259
|
+
get onerror(): ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
260
|
+
set onerror(value: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null);
|
|
261
|
+
get onload(): ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
262
|
+
set onload(value: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null);
|
|
263
|
+
get onloadend(): ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
264
|
+
set onloadend(value: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null);
|
|
265
|
+
get onloadstart(): ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
266
|
+
set onloadstart(value: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null);
|
|
267
|
+
get onprogress(): ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
268
|
+
set onprogress(value: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null);
|
|
269
|
+
toString(): string;
|
|
270
|
+
get isPolyfill(): {
|
|
271
|
+
symbol: symbol;
|
|
272
|
+
hierarchy: string[];
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
declare class FileReaderState {
|
|
276
|
+
constructor(target: FileReaderP);
|
|
277
|
+
target: FileReaderP;
|
|
278
|
+
readyState: FileReader["readyState"];
|
|
279
|
+
result: string | ArrayBuffer | null;
|
|
280
|
+
error: DOMException | null;
|
|
281
|
+
read(kind: string, blob: Blob, setResult: () => void): void;
|
|
282
|
+
emitProcessEvent(type: string, loaded?: number, total?: number): void;
|
|
283
|
+
attach(type: keyof FileReaderEventMap): void;
|
|
284
|
+
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
285
|
+
_onabort: (ev: ProgressEvent<FileReader>) => void;
|
|
286
|
+
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
287
|
+
_onerror: (ev: ProgressEvent<FileReader>) => void;
|
|
288
|
+
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
289
|
+
_onload: (ev: ProgressEvent<FileReader>) => void;
|
|
290
|
+
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
291
|
+
_onloadend: (ev: ProgressEvent<FileReader>) => void;
|
|
292
|
+
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
293
|
+
_onloadstart: (ev: ProgressEvent<FileReader>) => void;
|
|
294
|
+
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
295
|
+
_onprogress: (ev: ProgressEvent<FileReader>) => void;
|
|
296
|
+
}
|
|
297
|
+
declare const FileReaderE: {
|
|
298
|
+
new (): FileReader;
|
|
299
|
+
prototype: FileReader;
|
|
300
|
+
readonly EMPTY: 0;
|
|
301
|
+
readonly LOADING: 1;
|
|
302
|
+
readonly DONE: 2;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
declare class FormDataP implements FormData {
|
|
306
|
+
constructor(form?: HTMLFormElement, submitter?: HTMLElement | null);
|
|
307
|
+
[state$8]: FormDataState;
|
|
308
|
+
append(name: string, value: string | Blob, filename?: string): void;
|
|
309
|
+
delete(name: string): void;
|
|
310
|
+
get(name: string): FormDataEntryValue | null;
|
|
311
|
+
getAll(name: string): FormDataEntryValue[];
|
|
312
|
+
has(name: string): boolean;
|
|
313
|
+
set(name: string, value: string | Blob, filename?: string): void;
|
|
314
|
+
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
|
|
315
|
+
entries(): ArrayIterator<[string, FormDataEntryValue]>;
|
|
316
|
+
keys(): ArrayIterator<string>;
|
|
317
|
+
values(): ArrayIterator<FormDataEntryValue>;
|
|
318
|
+
[Symbol.iterator](): ArrayIterator<[string, FormDataEntryValue]>;
|
|
319
|
+
toString(): string;
|
|
320
|
+
get isPolyfill(): {
|
|
321
|
+
symbol: symbol;
|
|
322
|
+
hierarchy: string[];
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
declare class FormDataState {
|
|
326
|
+
_data: [string, FormDataEntryValue][];
|
|
327
|
+
toBlob(): BlobP;
|
|
328
|
+
}
|
|
329
|
+
declare const FormDataE: {
|
|
330
|
+
new (form?: HTMLFormElement, submitter?: HTMLElement | null): FormData;
|
|
331
|
+
prototype: FormData;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
declare class URLSearchParamsP implements URLSearchParams {
|
|
335
|
+
constructor(init?: string[][] | Record<string, string> | string | URLSearchParams);
|
|
336
|
+
[state$8]: URLSearchParamsState;
|
|
337
|
+
get size(): number;
|
|
338
|
+
append(name: string, value: string): void;
|
|
339
|
+
delete(name: string, value?: string): void;
|
|
340
|
+
get(name: string): string | null;
|
|
341
|
+
getAll(name: string): string[];
|
|
342
|
+
has(name: string, value?: string): boolean;
|
|
343
|
+
set(name: string, value: string): void;
|
|
344
|
+
sort(): void;
|
|
345
|
+
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
346
|
+
entries(): ArrayIterator<[string, string]>;
|
|
347
|
+
keys(): ArrayIterator<string>;
|
|
348
|
+
values(): ArrayIterator<string>;
|
|
349
|
+
[Symbol.iterator](): ArrayIterator<[string, string]>;
|
|
350
|
+
toString(): string;
|
|
351
|
+
get isPolyfill(): {
|
|
352
|
+
symbol: symbol;
|
|
353
|
+
hierarchy: string[];
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
declare class URLSearchParamsState {
|
|
357
|
+
_dict: Record<string, string[]>;
|
|
358
|
+
}
|
|
359
|
+
declare const URLSearchParamsE: {
|
|
360
|
+
new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
361
|
+
prototype: URLSearchParams;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
declare class AbortSignalP extends EventTargetP implements AbortSignal {
|
|
365
|
+
static abort(reason?: any): AbortSignal;
|
|
366
|
+
static any(signals: AbortSignal[]): AbortSignal;
|
|
367
|
+
static timeout(milliseconds: number): AbortSignal;
|
|
368
|
+
constructor();
|
|
369
|
+
[state$8]: AbortSignalState;
|
|
370
|
+
get aborted(): boolean;
|
|
371
|
+
get reason(): any;
|
|
372
|
+
throwIfAborted(): void;
|
|
373
|
+
get onabort(): ((this: AbortSignal, ev: Event) => any) | null;
|
|
374
|
+
set onabort(value: ((this: AbortSignal, ev: Event) => any) | null);
|
|
375
|
+
toString(): string;
|
|
376
|
+
get isPolyfill(): {
|
|
377
|
+
symbol: symbol;
|
|
378
|
+
hierarchy: string[];
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
declare class AbortSignalState {
|
|
382
|
+
constructor(target: AbortSignalP);
|
|
383
|
+
target: AbortSignalP;
|
|
384
|
+
aborted: boolean;
|
|
385
|
+
reason: any;
|
|
386
|
+
abort(reason: any, notify?: boolean, isTrusted?: boolean): void;
|
|
387
|
+
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
388
|
+
_onabort: (ev: Event) => void;
|
|
389
|
+
}
|
|
390
|
+
declare const AbortSignalE: {
|
|
391
|
+
new (): AbortSignal;
|
|
392
|
+
prototype: AbortSignal;
|
|
393
|
+
abort(reason?: any): AbortSignal;
|
|
394
|
+
any(signals: AbortSignal[]): AbortSignal;
|
|
395
|
+
timeout(milliseconds: number): AbortSignal;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
declare const state$2: unique symbol;
|
|
399
|
+
declare class AbortControllerP implements AbortController {
|
|
400
|
+
constructor();
|
|
401
|
+
[state$2]: AbortControllerState;
|
|
402
|
+
get signal(): AbortSignal;
|
|
403
|
+
abort(reason?: any): void;
|
|
404
|
+
toString(): string;
|
|
405
|
+
get isPolyfill(): {
|
|
406
|
+
symbol: symbol;
|
|
407
|
+
hierarchy: string[];
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
declare class AbortControllerState {
|
|
411
|
+
signal: AbortSignalP;
|
|
412
|
+
}
|
|
413
|
+
declare const AbortControllerE: {
|
|
414
|
+
new (): AbortController;
|
|
415
|
+
prototype: AbortController;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
declare class XMLHttpRequestEventTargetP extends EventTargetP implements XMLHttpRequestEventTarget {
|
|
419
|
+
constructor();
|
|
420
|
+
[state$8]: XMLHttpRequestEventTargetState;
|
|
421
|
+
get onabort(): ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
422
|
+
set onabort(value: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null);
|
|
423
|
+
get onerror(): ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
424
|
+
set onerror(value: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null);
|
|
425
|
+
get onload(): ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
426
|
+
set onload(value: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null);
|
|
427
|
+
get onloadend(): ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
428
|
+
set onloadend(value: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null);
|
|
429
|
+
get onloadstart(): ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
430
|
+
set onloadstart(value: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null);
|
|
431
|
+
get onprogress(): ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
432
|
+
set onprogress(value: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null);
|
|
433
|
+
get ontimeout(): ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
434
|
+
set ontimeout(value: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null);
|
|
435
|
+
toString(): string;
|
|
436
|
+
get isPolyfill(): {
|
|
437
|
+
symbol: symbol;
|
|
438
|
+
hierarchy: string[];
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
declare class XMLHttpRequestEventTargetState {
|
|
442
|
+
/**
|
|
443
|
+
* @param _target XMLHttpRequestEventTargetP
|
|
444
|
+
*/
|
|
445
|
+
constructor(_target: unknown);
|
|
446
|
+
target: XMLHttpRequest;
|
|
447
|
+
attach(type: keyof XMLHttpRequestEventTargetEventMap): void;
|
|
448
|
+
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
449
|
+
_onabort: (ev: ProgressEvent) => void;
|
|
450
|
+
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
451
|
+
_onerror: (ev: ProgressEvent) => void;
|
|
452
|
+
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
453
|
+
_onload: (ev: ProgressEvent) => void;
|
|
454
|
+
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
455
|
+
_onloadend: (ev: ProgressEvent) => void;
|
|
456
|
+
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
457
|
+
_onloadstart: (ev: ProgressEvent) => void;
|
|
458
|
+
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
459
|
+
_onprogress: (ev: ProgressEvent) => void;
|
|
460
|
+
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
|
|
461
|
+
_ontimeout: (ev: ProgressEvent) => void;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare class XMLHttpRequestUploadP extends XMLHttpRequestEventTargetP implements XMLHttpRequestUpload {
|
|
465
|
+
constructor();
|
|
466
|
+
toString(): string;
|
|
467
|
+
get isPolyfill(): {
|
|
468
|
+
symbol: symbol;
|
|
469
|
+
hierarchy: string[];
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
interface IGeneralCallbackResult {
|
|
474
|
+
/**
|
|
475
|
+
* 网络请求过程中的一些异常信息,例如httpdns超时等
|
|
476
|
+
*/
|
|
477
|
+
exception: {
|
|
478
|
+
/**
|
|
479
|
+
* 本次请求底层重试次数
|
|
480
|
+
*/
|
|
481
|
+
retryCount: number;
|
|
482
|
+
/**
|
|
483
|
+
* 本次请求底层失败信息,所有失败信息均符合Errno错误码
|
|
484
|
+
*/
|
|
485
|
+
reasons: Array<{
|
|
486
|
+
/**
|
|
487
|
+
* 错误原因
|
|
488
|
+
*/
|
|
489
|
+
errMsg: string;
|
|
490
|
+
/**
|
|
491
|
+
* 错误码
|
|
492
|
+
*/
|
|
493
|
+
errno: number;
|
|
494
|
+
}>;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* 最终请求是否使用了HttpDNS解析的IP。仅当enableHttpDNS传true时返回此字段。如果开启enableHttpDNS但最终请求未使用HttpDNS解析的IP,可在exception查看原因。
|
|
498
|
+
*/
|
|
499
|
+
useHttpDNS: boolean;
|
|
500
|
+
}
|
|
501
|
+
interface IRequestSuccessCallbackBaseResult {
|
|
502
|
+
/**
|
|
503
|
+
* 开发者服务器返回的数据
|
|
504
|
+
*/
|
|
505
|
+
data: string | object | ArrayBuffer;
|
|
506
|
+
/**
|
|
507
|
+
* 开发者服务器返回的 HTTP 状态码
|
|
508
|
+
*/
|
|
509
|
+
statusCode: number;
|
|
510
|
+
/**
|
|
511
|
+
* 开发者服务器返回的 HTTP Response Header
|
|
512
|
+
*/
|
|
513
|
+
header: object;
|
|
514
|
+
}
|
|
515
|
+
interface IRequestFailCallbackResult extends IGeneralCallbackResult {
|
|
516
|
+
/**
|
|
517
|
+
* 错误信息
|
|
518
|
+
*/
|
|
519
|
+
errMsg: string;
|
|
520
|
+
/**
|
|
521
|
+
* errno 错误码
|
|
522
|
+
*/
|
|
523
|
+
errno: number;
|
|
524
|
+
}
|
|
525
|
+
interface IAliRequestFailCallbackResult {
|
|
526
|
+
/**
|
|
527
|
+
* 错误码
|
|
528
|
+
*/
|
|
529
|
+
error: number;
|
|
530
|
+
/**
|
|
531
|
+
* 错误信息
|
|
532
|
+
*/
|
|
533
|
+
errorMessage: string;
|
|
534
|
+
/**
|
|
535
|
+
* 开发者服务器返回的数据,格式取决于请求时的 dataType 参数。
|
|
536
|
+
* 注意:当错误码为 14 或 19 时才会返回此字段
|
|
537
|
+
*/
|
|
538
|
+
data?: string | object | ArrayBuffer;
|
|
539
|
+
/**
|
|
540
|
+
* 开发者服务器返回的 HTTP 状态码
|
|
541
|
+
* 注意:当错误码为 14 或 19 时才会返回此字段
|
|
542
|
+
*/
|
|
543
|
+
status?: number;
|
|
544
|
+
/**
|
|
545
|
+
* 开发者服务器返回的 HTTP Response Header
|
|
546
|
+
* 注意:当错误码为 14 或 19 时才会返回此字段
|
|
547
|
+
*/
|
|
548
|
+
headers?: object;
|
|
549
|
+
}
|
|
550
|
+
interface IRequestTask {
|
|
551
|
+
/**
|
|
552
|
+
* 中断请求任务
|
|
553
|
+
*/
|
|
554
|
+
abort: () => void;
|
|
555
|
+
/**
|
|
556
|
+
* 监听 HTTP Response Header 事件。会比请求完成事件更早
|
|
557
|
+
*/
|
|
558
|
+
onHeadersReceived: (listener: (res: {
|
|
559
|
+
/**
|
|
560
|
+
* 开发者服务器返回的 HTTP Response Header
|
|
561
|
+
*/
|
|
562
|
+
header: object;
|
|
563
|
+
/**
|
|
564
|
+
* 开发者服务器返回的 HTTP 状态码 (目前开发者工具上不会返回 statusCode 字段,可用真机查看该字段,后续将会支持)
|
|
565
|
+
*/
|
|
566
|
+
statusCode: number;
|
|
567
|
+
/**
|
|
568
|
+
* 开发者服务器返回的 cookies,格式为字符串数组
|
|
569
|
+
*/
|
|
570
|
+
cookies: string[];
|
|
571
|
+
}) => void) => void;
|
|
572
|
+
/**
|
|
573
|
+
* 移除 HTTP Response Header 事件的监听函数
|
|
574
|
+
*/
|
|
575
|
+
offHeadersReceived: (listener: Function) => void;
|
|
576
|
+
/**
|
|
577
|
+
* 监听 Transfer-Encoding Chunk Received 事件。当接收到新的chunk时触发。
|
|
578
|
+
*/
|
|
579
|
+
onChunkReceived: (listener: (res: {
|
|
580
|
+
/**
|
|
581
|
+
* 返回的chunk buffer
|
|
582
|
+
*/
|
|
583
|
+
data: ArrayBuffer;
|
|
584
|
+
}) => void) => void;
|
|
585
|
+
/**
|
|
586
|
+
* 移除 Transfer-Encoding Chunk Received 事件的监听函数
|
|
587
|
+
*/
|
|
588
|
+
offChunkReceived: (listener: Function) => void;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
declare const state$1: unique symbol;
|
|
592
|
+
|
|
593
|
+
declare class XMLHttpRequestP extends XMLHttpRequestEventTargetP implements XMLHttpRequest {
|
|
594
|
+
static readonly UNSENT = 0;
|
|
595
|
+
static readonly OPENED = 1;
|
|
596
|
+
static readonly HEADERS_RECEIVED = 2;
|
|
597
|
+
static readonly LOADING = 3;
|
|
598
|
+
static readonly DONE = 4;
|
|
599
|
+
constructor();
|
|
600
|
+
[state$1]: XMLHttpRequestState;
|
|
601
|
+
readonly UNSENT = 0;
|
|
602
|
+
readonly OPENED = 1;
|
|
603
|
+
readonly HEADERS_RECEIVED = 2;
|
|
604
|
+
readonly LOADING = 3;
|
|
605
|
+
readonly DONE = 4;
|
|
606
|
+
get readyState(): number;
|
|
607
|
+
get response(): any;
|
|
608
|
+
get responseText(): string;
|
|
609
|
+
get responseType(): XMLHttpRequestResponseType;
|
|
610
|
+
set responseType(value: XMLHttpRequestResponseType);
|
|
611
|
+
get responseURL(): string;
|
|
612
|
+
get responseXML(): Document | null;
|
|
613
|
+
get status(): number;
|
|
614
|
+
get statusText(): string;
|
|
615
|
+
get timeout(): number;
|
|
616
|
+
set timeout(value: number);
|
|
617
|
+
get upload(): XMLHttpRequestUploadP;
|
|
618
|
+
get withCredentials(): boolean;
|
|
619
|
+
set withCredentials(value: boolean);
|
|
620
|
+
abort(): void;
|
|
621
|
+
getAllResponseHeaders(): string;
|
|
622
|
+
getResponseHeader(name: string): string | null;
|
|
623
|
+
open(...args: [method: string, url: string | URL, async?: boolean, username?: string | null, password?: string | null]): void;
|
|
624
|
+
overrideMimeType(mime: string): void;
|
|
625
|
+
send(body?: Document | XMLHttpRequestBodyInit | null): void;
|
|
626
|
+
setRequestHeader(name: string, value: string): void;
|
|
627
|
+
get onreadystatechange(): ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
628
|
+
set onreadystatechange(value: ((this: XMLHttpRequest, ev: Event) => any) | null);
|
|
629
|
+
toString(): string;
|
|
630
|
+
get isPolyfill(): {
|
|
631
|
+
symbol: symbol;
|
|
632
|
+
hierarchy: string[];
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
declare class XMLHttpRequestState {
|
|
636
|
+
constructor(target: XMLHttpRequestP);
|
|
637
|
+
target: XMLHttpRequestP;
|
|
638
|
+
readyState: number;
|
|
639
|
+
response: any;
|
|
640
|
+
responseType: XMLHttpRequestResponseType;
|
|
641
|
+
responseURL: string;
|
|
642
|
+
status: number;
|
|
643
|
+
statusText: string;
|
|
644
|
+
timeout: number;
|
|
645
|
+
upload: XMLHttpRequestUploadP;
|
|
646
|
+
withCredentials: boolean;
|
|
647
|
+
_reqCanSend: boolean;
|
|
648
|
+
_resetPending: boolean;
|
|
649
|
+
_timeoutId: number;
|
|
650
|
+
_reqURL: string;
|
|
651
|
+
_method: string;
|
|
652
|
+
_reqHeaders: Record<string, string>;
|
|
653
|
+
_resHeaders: Record<string, string> | null;
|
|
654
|
+
_resContLen: number;
|
|
655
|
+
_requestTask: IRequestTask | null;
|
|
656
|
+
execRequest(body?: Document | XMLHttpRequestBodyInit | null): void;
|
|
657
|
+
requestSuccess({ statusCode, header, data }: IRequestSuccessCallbackBaseResult): void;
|
|
658
|
+
requestFail(err: IRequestFailCallbackResult | IAliRequestFailCallbackResult): void;
|
|
659
|
+
requestComplete(): void;
|
|
660
|
+
clearRequest(delay?: boolean): void;
|
|
661
|
+
checkRequestTimeout(): void;
|
|
662
|
+
resetXHR(): void;
|
|
663
|
+
resetRequestTimeout(): void;
|
|
664
|
+
emitProcessEvent(type: string, loaded?: number, total?: number, target?: XMLHttpRequestEventTargetP): void;
|
|
665
|
+
setReadyStateAndNotify(value: number): void;
|
|
666
|
+
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
667
|
+
_onreadystatechange: (ev: Event) => void;
|
|
668
|
+
}
|
|
669
|
+
declare const XMLHttpRequestE: {
|
|
670
|
+
new (): XMLHttpRequest;
|
|
671
|
+
prototype: XMLHttpRequest;
|
|
672
|
+
readonly UNSENT: 0;
|
|
673
|
+
readonly OPENED: 1;
|
|
674
|
+
readonly HEADERS_RECEIVED: 2;
|
|
675
|
+
readonly LOADING: 3;
|
|
676
|
+
readonly DONE: 4;
|
|
677
|
+
} | typeof XMLHttpRequestP;
|
|
678
|
+
|
|
679
|
+
declare function fetchP(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
680
|
+
declare const fetchE: typeof fetch;
|
|
681
|
+
|
|
682
|
+
declare class HeadersP implements Headers {
|
|
683
|
+
constructor(init?: HeadersInit);
|
|
684
|
+
[state$8]: HeadersState;
|
|
685
|
+
append(name: string, value: string): void;
|
|
686
|
+
delete(name: string): void;
|
|
687
|
+
get(name: string): string | null;
|
|
688
|
+
getSetCookie(): string[];
|
|
689
|
+
has(name: string): boolean;
|
|
690
|
+
set(name: string, value: string): void;
|
|
691
|
+
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
|
|
692
|
+
entries(): MapIterator<[string, string]>;
|
|
693
|
+
keys(): ArrayIterator<string>;
|
|
694
|
+
values(): ArrayIterator<string>;
|
|
695
|
+
[Symbol.iterator](): MapIterator<[string, string]>;
|
|
696
|
+
toString(): string;
|
|
697
|
+
get isPolyfill(): {
|
|
698
|
+
symbol: symbol;
|
|
699
|
+
hierarchy: string[];
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
declare class HeadersState {
|
|
703
|
+
_map: Map<string, [string, string]>;
|
|
704
|
+
}
|
|
705
|
+
declare const HeadersE: {
|
|
706
|
+
new (init?: HeadersInit): Headers;
|
|
707
|
+
prototype: Headers;
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
declare const state: unique symbol;
|
|
711
|
+
|
|
712
|
+
declare class BodyP implements Body {
|
|
713
|
+
constructor();
|
|
714
|
+
[state]: BodyState;
|
|
715
|
+
get body(): ReadableStream<TUint8ArrayOfArrayBuffer> | null;
|
|
716
|
+
get bodyUsed(): boolean;
|
|
717
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
718
|
+
blob(): Promise<Blob>;
|
|
719
|
+
bytes(): Promise<TUint8ArrayOfArrayBuffer>;
|
|
720
|
+
formData(): Promise<FormData>;
|
|
721
|
+
json(): Promise<any>;
|
|
722
|
+
text(): Promise<string>;
|
|
723
|
+
toString(): string;
|
|
724
|
+
get isPolyfill(): {
|
|
725
|
+
symbol: symbol;
|
|
726
|
+
hierarchy: string[];
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
declare class BodyState {
|
|
730
|
+
bodyUsed: boolean;
|
|
731
|
+
_name: string;
|
|
732
|
+
_body: string | ArrayBuffer;
|
|
733
|
+
init(body?: ConstructorParameters<typeof Response>[0], headers?: Headers): void;
|
|
734
|
+
read(k: "arrayBuffer"): Promise<ArrayBuffer>;
|
|
735
|
+
read(k: "blob"): Promise<Blob>;
|
|
736
|
+
read(k: "bytes"): Promise<TUint8ArrayOfArrayBuffer>;
|
|
737
|
+
read(k: "formData"): Promise<FormData>;
|
|
738
|
+
read(k: "json"): Promise<any>;
|
|
739
|
+
read(k: "text"): Promise<string>;
|
|
740
|
+
consumed(kind: string): Promise<never> | undefined;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
declare class RequestP extends BodyP implements Request {
|
|
744
|
+
constructor(input: RequestInfo | URL, init?: RequestInit);
|
|
745
|
+
[state$8]: RequestState;
|
|
746
|
+
get cache(): RequestCache;
|
|
747
|
+
get credentials(): RequestCredentials;
|
|
748
|
+
get destination(): RequestDestination;
|
|
749
|
+
get headers(): Headers;
|
|
750
|
+
get integrity(): string;
|
|
751
|
+
get keepalive(): boolean;
|
|
752
|
+
get method(): string;
|
|
753
|
+
get mode(): RequestMode;
|
|
754
|
+
get redirect(): RequestRedirect;
|
|
755
|
+
get referrer(): string;
|
|
756
|
+
get referrerPolicy(): ReferrerPolicy;
|
|
757
|
+
get signal(): AbortSignal;
|
|
758
|
+
get url(): string;
|
|
759
|
+
clone(): Request;
|
|
760
|
+
toString(): string;
|
|
761
|
+
get isPolyfill(): {
|
|
762
|
+
symbol: symbol;
|
|
763
|
+
hierarchy: string[];
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
declare class RequestState {
|
|
767
|
+
cache: RequestCache;
|
|
768
|
+
credentials: RequestCredentials;
|
|
769
|
+
destination: RequestDestination;
|
|
770
|
+
headers: Headers;
|
|
771
|
+
integrity: string;
|
|
772
|
+
keepalive: boolean;
|
|
773
|
+
method: string;
|
|
774
|
+
mode: RequestMode;
|
|
775
|
+
redirect: RequestRedirect;
|
|
776
|
+
referrer: string;
|
|
777
|
+
referrerPolicy: ReferrerPolicy;
|
|
778
|
+
signal: AbortSignal;
|
|
779
|
+
url: string;
|
|
780
|
+
}
|
|
781
|
+
declare const RequestE: {
|
|
782
|
+
new (input: RequestInfo | URL, init?: RequestInit): Request;
|
|
783
|
+
prototype: Request;
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
declare class ResponseP extends BodyP implements Response {
|
|
787
|
+
constructor(body?: BodyInit | null, init?: ResponseInit);
|
|
788
|
+
[state$8]: ResponseState;
|
|
789
|
+
get headers(): Headers;
|
|
790
|
+
get ok(): boolean;
|
|
791
|
+
get redirected(): boolean;
|
|
792
|
+
get status(): number;
|
|
793
|
+
get statusText(): string;
|
|
794
|
+
get type(): ResponseType;
|
|
795
|
+
get url(): string;
|
|
796
|
+
clone(): Response;
|
|
797
|
+
static json(data: any, init?: ResponseInit): Response;
|
|
798
|
+
static error(): ResponseP;
|
|
799
|
+
static redirect(url: string | URL, status?: number): Response;
|
|
800
|
+
toString(): string;
|
|
801
|
+
get isPolyfill(): {
|
|
802
|
+
symbol: symbol;
|
|
803
|
+
hierarchy: string[];
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
declare class ResponseState {
|
|
807
|
+
headers: Headers;
|
|
808
|
+
ok: boolean;
|
|
809
|
+
redirected: boolean;
|
|
810
|
+
status: number;
|
|
811
|
+
statusText: string;
|
|
812
|
+
type: ResponseType;
|
|
813
|
+
url: string;
|
|
814
|
+
}
|
|
815
|
+
declare const ResponseE: {
|
|
816
|
+
new (body?: BodyInit | null, init?: ResponseInit): Response;
|
|
817
|
+
prototype: Response;
|
|
818
|
+
error(): Response;
|
|
819
|
+
json(data: any, init?: ResponseInit): Response;
|
|
820
|
+
redirect(url: string | URL, status?: number): Response;
|
|
821
|
+
};
|
|
822
|
+
|
|
823
|
+
export { AbortControllerE as AbortController, AbortControllerP, AbortSignalE as AbortSignal, AbortSignalP, BlobE as Blob, BlobP, CustomEventE as CustomEvent, CustomEventP, EventE as Event, EventP, EventTargetE as EventTarget, EventTargetP, FileE as File, FileP, FileReaderE as FileReader, FileReaderP, FormDataE as FormData, FormDataP, HeadersE as Headers, HeadersP, ProgressEventE as ProgressEvent, ProgressEventP, RequestE as Request, RequestP, ResponseE as Response, ResponseP, TextDecoderE as TextDecoder, TextDecoderP, TextEncoderE as TextEncoder, TextEncoderP, URLSearchParamsE as URLSearchParams, URLSearchParamsP, XMLHttpRequestE as XMLHttpRequest, XMLHttpRequestP, fetchE as fetch, fetchP };
|