@zhengxs/http
Version:
A lightweight cross-platform http request library
25 lines (24 loc) • 598 B
JavaScript
import { s } from "../registry.mjs";
import { M as l } from "../MultipartBody.mjs";
function t() {
return {
kind: "web",
fetch: globalThis.fetch,
Request: globalThis.Request,
Response: globalThis.Response,
Headers: globalThis.Headers,
FormData: globalThis.FormData,
Blob: globalThis.Blob,
File: globalThis.File,
ReadableStream: globalThis.ReadableStream,
getMultipartRequestOptions: async (e, a) => ({
...a,
body: new l(e)
}),
getDefaultAgent: () => {
},
isFsReadStream: () => !1
};
}
s(t());
//# sourceMappingURL=web.mjs.map