11cb0ef41Sopenharmony_ci'use strict' 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciconst fetchImpl = require('./lib/fetch').fetch 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_cimodule.exports.fetch = function fetch (resource, init = undefined) { 61cb0ef41Sopenharmony_ci return fetchImpl(resource, init).catch((err) => { 71cb0ef41Sopenharmony_ci Error.captureStackTrace(err, this) 81cb0ef41Sopenharmony_ci throw err 91cb0ef41Sopenharmony_ci }) 101cb0ef41Sopenharmony_ci} 111cb0ef41Sopenharmony_cimodule.exports.FormData = require('./lib/fetch/formdata').FormData 121cb0ef41Sopenharmony_cimodule.exports.Headers = require('./lib/fetch/headers').Headers 131cb0ef41Sopenharmony_cimodule.exports.Response = require('./lib/fetch/response').Response 141cb0ef41Sopenharmony_cimodule.exports.Request = require('./lib/fetch/request').Request 151cb0ef41Sopenharmony_cimodule.exports.WebSocket = require('./lib/websocket/websocket').WebSocket 16