UNPKG

701 BJavaScriptView Raw
1export const supportsAbortController = typeof globalThis.AbortController === 'function';
2export const supportsStreams = typeof globalThis.ReadableStream === 'function';
3export const supportsFormData = typeof globalThis.FormData === 'function';
4export const requestMethods = ['get', 'post', 'put', 'patch', 'head', 'delete'];
5const validate = () => undefined;
6validate();
7export const responseTypes = {
8 json: 'application/json',
9 text: 'text/*',
10 formData: 'multipart/form-data',
11 arrayBuffer: '*/*',
12 blob: '*/*',
13};
14// The maximum value of a 32bit int (see issue #117)
15export const maxSafeTimeout = 2147483647;
16export const stop = Symbol('stop');
17//# sourceMappingURL=constants.js.map
\No newline at end of file