{"_id":"@uni/request","_rev":"35-77d1daedb3a4256af181009cbcd439e1","name":"@uni/request","dist-tags":{"beta":"1.1.8-beta.0","latest":"1.1.9"},"versions":{"1.0.0-beta":{"name":"@uni/request","version":"1.0.0-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.0-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-PlA1jNHmSqnq/nNJ+4Yoxp9x1CEOMPRIcFUiyhhb4TYmatyeZzoMr3ZkZ3OD5OQs8M0cGZoRyc9kOBAvygUKgA==","shasum":"31ad87120d486e76e7d5255fefa1e485e3bcde4a","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.0-beta.tgz","fileCount":25,"unpackedSize":169271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOLvFCRA9TVsSAnZWagAAYqEP/3A2AqPp1/VxqitH+GJQ\ne/yl8fvJOpiVFgiwzWsS4U8RBq7AcPO9OftBweYKzqAaNFOZA5l2YjdZ4b4f\n6gLH4rxu3q1aUNMH0ScMHcJdGuZBmSVDvYujndZXn9reV4pv3zaO4NvpLXrQ\nkspdgQy5wi2WVttdDSiuJH/bwB/ctRjHp+S473SUSLaePMia91H2FroJsXPu\nBR0EGI+WhQPkjpMP4Mr5SxuYD00uKNIeQ02pk9dk1lgBvhiFxcL+8fQnG0+e\n3yio1yzpr6wQ5hx/8o11ONeVNP8AdjP914joBfOgLtkMdlrTt1r9FgXGYyHZ\nLafGlLNud/UbAbthfHgT+t/E1Q0ylfu+YGmJvy1BkQjuV8peqdE/D579HG9g\nW/tMrtKV3cKLXqRDHQWrqM4n17QbKKhHi6+vSY7hs7IlqoUqCIpz6oLy4KpG\nOd8UKsj/iHksfDEHCA/5ZNhYxCknuHr7tpYo2FRiyVbKHoAf2jZhi0RWh4Or\nQZR5yEsbK6HZvbsQ3UR2XxhkGkKh6FSKYw4svfLDtO72f4kHoi/t6SDqJcSe\n8SPE3mjqV73DVHsfLe3u1dB9yE/z1XYypuydL1yNkXgX9ihz/nUBate2b1jd\nC08dm2wgkDfROuDekrWEKxORiavTHzeTMYewRI6vqfiyFqL7ihjs0LgdiAp/\np2H1\r\n=k03U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArSdoaT76AvmmLxop/3OqLM+hkZZU4Sn4Yw9uh+D5gdAiEAx9LjHEYrw0hDMHPeixZt+EaMgOIuQbJUIr97qE21O+U="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.0-beta_1614330820658_0.178181889497518"},"_hasShrinkwrap":false},"1.0.0-beta1":{"name":"@uni/request","version":"1.0.0-beta1","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\n\nUsed to initiate a network request\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n// Promise\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json'\n}).then(response => {})\n  .catch(error => {})\n  .finally(res => {});\n\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| opthons.url | `string`  | Required，the request url | true | - |\n| opthons.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD,mini app only support GET/POST | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### 不通用参数（由于破坏了一码多端的能力，不推荐使用）\n| 属性   | 类型     | 默认值 | 必选 | 描述 | 支持  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"微信小程序\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"字节跳动小程序\"> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"微信小程序\"> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"微信小程序\"> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"微信小程序\"> |\n\n### Return\n\nSuccess return：`Promise<Response>`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers ，JSONP request has no value |\n| response.status | `number`  | Response status，JSONP request has no value |\n\n### 不通用返回参数（由于破坏了一码多端的能力，不推荐使用）\n| 属性   | 类型     | 描述 | 支持  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | 开发者服务器返回的 cookies，格式为字符串数组 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"微信小程序\"> |\n| profile | `Object` | 网络请求过程中一些调试信息 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"微信小程序\"> |\n\nFail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"200\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.0-beta1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-RqP0mSfQsCOsOefswclKkNdZhTVN6dZQJRnex382yjn6wd/9QjbNlZh+nLtnpbu7MAOaC2QZZduQXSyeqrCPQA==","shasum":"bd3461f6180ce3b932ca0b7651b9f1e3885fcd88","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.0-beta1.tgz","fileCount":25,"unpackedSize":168530,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOO+5CRA9TVsSAnZWagAAvaQP/1E+0GugNdIaEVB79IdT\na68kAsDZv2If/3ENj+S/uduAyS4t314dwuV6zs+srbNi/rz7MDhfa/PISVWb\nlbUX+8sHNujSJBJ3WQRHcyrMPb3fc0YTXM+MDNXdVMMOPKEt6JtLh2D/d+6c\ndYsQGB65fcO0mFIO/zF3wg4dX25vRJMQAr/GxGP7ZcteHHc+TRC69VLnmb0y\n7NXJAIrV5uhhpe2c51zz2SYwM3FQV+6zI/WtLmCbjcWzj6rti8eRVTkg3Yb0\n090gleJCAqtxnfH2a+qpX5ovQBSz6IKkg1p15+oDdVgtj6d7lExHLxyct6n8\nY1nwdjO+P5T9+jp7QcpEdbck3b0QF/NUeorCb8n0hl4kP1REZ/s1wDRT3giD\nlnT8Updw68yXWI0akk4T58j2K8RJ2SmYdeP4Gs2/Qc0bmPNG14YFe/NSp7DE\nXB69ATspxSK+UTt/6J3R87G+4iXl6VVSgDvyY/QGM/bZN3qTGy/W7cOBPtPs\nfb2IZKEz0hxXiXxtcd/ri6dwpjjv0vFQQulgSUEt/Ngyx/ex5Sx55+HYxKSY\nmF8qZtP1x4yubhV2JoC4pDGX0eItdD8GQENMHvyK+xiQsEY0SNSzx3rrD1J+\nOvr7gqePP9HZPmm4rbmUUMAs+bBgYLXYEXj2vX1YNrGFWptbUJsjhhzt6ggD\nNDBZ\r\n=8jJ+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/eYh4FSRvPtHuWK53o3Fn/pQKkV0QbzPEPK6145VLDgIhAK7fm7LnQnr/GzITQ4Xgz7GSV64WUmbYFD8/fzHgY4yO"}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.0-beta1_1614344120959_0.9807092969554458"},"_hasShrinkwrap":false},"1.0.0":{"name":"@uni/request","version":"1.0.0","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","peerDependencies":{"@uni/env":"^1.0.0-beta"},"dependencies":{"@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-WuW+zxzH4Rr+eCj3pioc3a4HKx6u+6QoEaxZ51K8lXke2VdYGLQ0SICav9SJ9Wi1XR0eZsu6GYv1CG+7K1fIpQ==","shasum":"11a8346ebe585eadf2b34151045d7b76288080e1","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.0.tgz","fileCount":25,"unpackedSize":168524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQM2RCRA9TVsSAnZWagAAOHYQAIdxI93hs+o88F/OtmGy\nzB8NJmt8q0VOqWlJVn6BB7kNxpQ8v3tvrl8XT7HGJzgkJv9IZYJoJvkGCsLv\nNpor0xUsGV+TTDOmMqO0+Tj2PyINyNivdxoMxl0n8O1TY+iRAUS35GgcukwC\njP2PCA/D15jpu9QuOnGhovXpxTzabM/GlqSDVZSAlRXI9cdYO6cxyo0OOTHc\nqxSCURrO71J1wh7c7rarcvW3lo5vCr+tg6ExU/HuN5IHTPW++bEzLhNvA81g\n1AGbnO85Ck/ObDfdSpug+Y243z7G9JbqVwnccKiSo7TwmtW3tW7EyI/Flp2C\nQo1WpsHxVo8lxbzHJvPQBZQwEHkrforIzzvnITQIttA8qiQ1KhB7pD46yanS\ntMc6XO0eVoA6uwI3sjQRysEbsjCCtcwJ4tgzdAvY8umUx8fKMh2kFy3utV+9\nLbbpzEWEkX47XEeFzQZ+oY6lo+ZZaTlvTLYEdyPSF0siBZHrbsePn+TgwByk\nmpWSb/97rT4wItmahhP5GYItdwN8og0LLSBvn3IoqmvmvsTvj9lzEikvzfgk\nSOsOivrGYzB+s6EwsbVidoyjuLceMfg4idCVrEtsBsAwv1RrntPrkDJo8wU6\nG8ROGFUTUxLDnjDUVKRjJCwTR7FmvgilX8u8jCeGTLiS4q7SV8WjVHFyKZFm\nh0+8\r\n=IYou\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsZ2OuX1l9K4jQW9TrC0MW1ON8qXAQA9DvVE7BuEKIMQIhAIBftKwGHyWD4vy9L5KOys33NaS7iN7Q6U4cddu7NROC"}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.0_1614859665428_0.8370262399735233"},"_hasShrinkwrap":false},"1.0.1":{"name":"@uni/request","version":"1.0.1","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"index.js","module":"index.es.js","unpkg":"index.umd.js","typings":"types/index.d.ts","dependencies":{"@uni/env":"^1.0.0","@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.1","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-5c7aUaumz5i0Wr9iG+iYeMhbWAuCSKGQ/J+eLu9bafJUZGK6Zh1qdbP13Nv7SpRjAffA9edOs6zL63GoN3Nc5A==","shasum":"579e668606879faf33c7cbd22f6b5869ce4db8a0","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.1.tgz","fileCount":25,"unpackedSize":169726,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS1a6CRA9TVsSAnZWagAAbcQP/3V3sBVoyK/VWANn3Orx\n99zCH4K8lOx/FgcterpikOBckGyMCFgVCSMv46GSD8L9vYFyep1FWvpeD4dE\nJBQxEzhYZwOOF63xW6pyHi9nZALnat5LZ5SPmUBF0rsRFTsjAyCCFwLpA9Fs\nP/kSvzEECntx1+IrH5Cwv8BySDO0CO2rK+87Xowe44v2BGAYXlhPWstnNbEX\npM5WU/OLnSOJhqZqIurIoJ6gevopb5Qly5IzU8g5y5FldEUJwpmClfDrEQW4\nA2RfqigjaAsQBzdQt9jdlTzf83kqIGn2WNKBYSfvD3jphDlRDCLBtAS21PyP\n8AubzOUBPzPkYnROroQLZ0sPXz2i/0bozYR1uWO9ABVmt6kongfZOhJuX5v+\n6X3O62nkSGPYDCrur0e3elRWp0eAVbRsFoCSdeEh5u4s9ZIb2X2fd4gSmbsk\nqsk6iBDdUwZheaefHnlxi5frdMcWm4du5oBw577PohI9COGCbr6nuvwYME5a\nRscqiBdMnl6KyoMCy5IZXdh3rzUzeJKytxFSnsDM49y3dVIAcuaRTW4qtDLK\nFpXYpQe6hx1ww5eWEDBlDsLilJcFCqZ/xJNoebifZLoRT6st2Q3AW9LNxE0S\nCu1QvrT4176jsq0nV0f2YY8lb7Ijuu/If7e8xh7t2XovdiGDnhp1FmOSngVl\npXiw\r\n=rPkV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSCypxVUeSUd/0iVmRIOtyKeEpHiEVQ01IuGKO2fX+yAiAPWoetzq27h6fecIAexhlJQ+z8aSaj58a6B3PY/e4IVg=="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.1_1615550138546_0.482390902796332"},"_hasShrinkwrap":false},"1.0.2":{"name":"@uni/request","version":"1.0.2","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"dependencies":{"@uni/env":"^1.0.0","@babel/runtime-corejs3":"^7.11.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.2","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-7wqFO2wn2qxXTuQ/J1jxaOtSux1AVhc0LOur7kPNiF/XGVY49Gb9e7ydGCtOs1E/bTMYtVSlcE00XUn4u4b7/A==","shasum":"a7efafebb53f56564f904b908c8ec0b1d1a87cdb","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.2.tgz","fileCount":35,"unpackedSize":49343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdpuRCRA9TVsSAnZWagAAwCwP/24aL/2owifufg0qrL5u\nNUqmGu6MQ+UHkTXABbdup6X6h7hPua86BIheCabF4Q43IAIkRflIcDOtUhgL\n4OvwvkhxgEXU2VHhmlGvejUKy+2i6P5LHyWg5v3CB3srRIc/NQKJn+xLGV68\nM9A4qjIVhc6aXp4SpHgTLJAj+zguseHstz9q8dADFCKjzh+VyB2RZdhsk7q1\n2/f/gNB9fj0BpP6cyO0L2eB6XMgTx3+EK3l5BeUVB5SyIyYEAw33vOJsJ6UY\nqe0+B47lbNZ3oe/Tvnq6+ayCEk1gE4pTfeyB06cb9dcGig5Ypx34dMXFwKfJ\n7njnG66U8t4miqRpkhHV4/yLgkQ9S+2tuvho0QGtueeNQ07mt+QPDeP3gUSR\n/YSgdxGUi4fN7tBwIM5U1RyhoJclAOlanDs8dHs4+jKEoOKpQhTtFoLixru9\nVvDhez6iCrXkhK1ii8DwjW+icD6yq1lkkRNn7wTV/EYcG0e4sTyC4sxsYUxc\nx5QgDIG17euP752QcQDDSgfzYdNzjeacuccU6pNTCAeKgBK3PmUtelX/fbOd\npq0wV8O4suO9EJGJbFzkpewU0kyvHlO8GEp9GygaMvqMvIGQZEgES3zBt3ff\n/QnWSFrHaM9ckLmZtncTdwp19iZdEyy67A+pqXFVbzDuQ7jJUajLIBhyyf62\nQHnU\r\n=AT4b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICycds2aoKWoVkRHtPmcwSSkDzYc9cXlcFT9GXVlUFrkAiEA/5uOEDD4MYS5hLliwDYbZB0AfnCfUrRVNZ+bBlwEj18="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.2_1618385808368_0.906531143811464"},"_hasShrinkwrap":false},"1.0.3":{"name":"@uni/request","version":"1.0.3","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.3","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-OT207Ny3EivPe+01nkfjIGcrYGvPK4EVRqWG1EOR6IH2a/YTm7dCv+hzEQEEMMaQxzvStGYjSg7AJiWnP5aQfQ==","shasum":"5c1a901d44c21f4ba20e4cd9ba77730d46df49a1","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.3.tgz","fileCount":40,"unpackedSize":68215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggSwECRA9TVsSAnZWagAATi4P/0dlJ/N0/t6BGgPF3E6c\nLt8TfdC6NGEbHFrxHTk82zZXAry5XBJzpb2t0GSRJ8HNMTVqSL9jU6bzj+z9\nQlb6AIhlmg3PeWy4beZLT+ThQCJsvG9H4RPwepGvSLgTg5gi8CQSJeLHk8Jq\nK10/7FnMz9B2FZOJcgoeAjjTX72QcVyv6CDTCk8qhXhYzUuJ994dBg5MDCXP\nSKazWDqEF9A977/ir7su8NjUSKOwjYK/CvPuJDHWSfa19yOZSZk7rF75obVA\noZedwSGW957zass4kF5J51aHxULwg43KqgGuIWPH5hrgFHsOlWWOsjIhh4fV\ncrkpSj9nNVMxVb4lfIjwm0YTebwKpNhixynPOJum+WoFaWFtZziPZaodEq3O\nqv4Y1IWQlStkgqTAhrzaOh/AJtzROWaTm3n+8Q2Li/UdljLfs3cD+k2qHZTr\nbV2w3FU/mpBadcu0gmKJ9ehGyJEfP8b8pYZILGnD03R93ndNLkPABvqS5PDK\n2e91TefK5afg06l/EvD65u5myPkLD5pq082IgDoCYSvex6qwydtMWJu2ZmbR\n9oTDeELSECx7hy7B2wGozz1XGhAeeCSsFMPr6nw4ak8mzCpJL6TVp9sdVs0q\nXouM6XagU707ko3sqtJPnHMkqQcow96vYFY9G9O0cAVb7zGRcoQYRV1A0e2b\nzsvS\r\n=FXVU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF90BZSey6jmFS7CkzlNF0PVsJ/pB45X5warZRiozafIAiBD+TEnA2p+ijjYBURRAVqEO8y9re+85lHQ470tRisvYg=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.3_1619078147636_0.5412987985262416"},"_hasShrinkwrap":false},"1.0.4":{"name":"@uni/request","version":"1.0.4","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.4","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-JhjKqOGfwVaAR8GGOsa7glmeul8ZeWDBCU2LDLszUtj2EDM4tzfCN63QQQdQo8uzaqxTIRBldwklEo4KDv6vFQ==","shasum":"06bfe93cb5ac31010062a5bda157596342777e0f","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.4.tgz","fileCount":40,"unpackedSize":82131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghmBXCRA9TVsSAnZWagAAe/0P/RaezpPVdRxRY+FNEDcQ\nfV5aY1xJvu+0hI7KDWk/q+g88KLsOpwFJzqXdimU85Doe+6YMtG1iXMGE6WQ\n2upghdqLCb1fgU4YsnxLkOB9O6i6MZxG0xTtC9EwjSXisJbuR+RcDYHeF6wc\nyNp6B+fUNm2toRvBaP9SEglcVEGvge6z3gR01IUAtSvY36iF1IuXgnRqbyZq\nbdVX5E3yAdua2fMQWuNCQPj7glbF+B35ZA7WH5BxfTk92/JnUNPj3PnN0vwO\nEmHP89VGI6sY6QAJVIUiem3Udx+O31J0X1YBXzG7hbb+UOYYk1cPkt4tJMKm\ng7txbCvzeU5rgnB7rzKFhc+U81ZuAyvvTXhQdoENyrBmD0FoI3UdldxHadte\nhnUsP1Xij/lhD5yaMopzmPwksGa1wi+5j+bs4XARemzWMZ/NNPK6BEHcMIZY\nGaeNYuQA0Kzx5PK2jiH7vK68mXeApNUVpzIx0d9wgBgrxnGibAguhAhdun4s\nzm077HZdYggBzxNUvIQajpTGCMUAg+6LdcRk+HqlYUaz1ixWaNCb9YwpRZk6\nEFcieoz2BpPAwSMkDxYH+mgLR/OOuqo4bthi0wIXeAfUTA8hcgN0llHuWsLv\ndpEdZp5ihgeQQPDTw6CpVSWVB+34iZwbRsUSD6rt8f82hYVCuN7k0qXVibiP\nKdAe\r\n=rAoq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYoAEWMsnr2y+25GBCi/Ln+mlzrdAjrXcGhrHKYYutbQIhAJWo4UeP4ag/jzhmJgXpASj1rxjjrtqcHUooO9JYGW2d"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.4_1619419223007_0.1780648453024709"},"_hasShrinkwrap":false},"1.0.5":{"name":"@uni/request","version":"1.0.5","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.5","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-m6eQqctI2EjYgN1V2TJW8W+SyLFej07EMXO7Y6z1+9Pa7ITDvRlu0D+xIr/YI0bmKx8hcNwr6vWcUsVYI4XU9Q==","shasum":"00b4f907afb00816ba2630aa10cdda61a2698d50","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.5.tgz","fileCount":40,"unpackedSize":86325,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiQoFCRA9TVsSAnZWagAAtcgQAKGrEI6kqxdHiZMEXnvd\nILfriBTSx06tsiWTRJFP/rZ1/FfUN99hGolG0YsmMmDusWfo9pvi3v80jxtr\nNzyNsdl1E9m9EOfZuPVc4I5wf/nm4OrmQqhyTL4WHwKldevfudHJ5VxvCX/n\nfJuyt6NkwHngTBcUoFsgBO8PA9yrdSMgNG61M3sark2DxbyQPh9KhPvSF7Mt\nCZTC3denxdUKa/zIB7OtGFujfOIeV3TmOp9mFs/70KT8LE7H4+yWpoGn2ie3\nAHv+lr1AJNW0lH7r0shO58LTo5YRNqF0CXopA1445OL7HcLExG09GyOIRt6M\n2ioNa6Th6fw0ymMLfXVGEM8bFLk6kTjEOfXM+xIwn6VJ+Cz0yfD+zD0A7rer\n7QD/LybBgKUz3SOxXo0XE/G3AHOs+ssAoiORWgMWDRxRCD7YN5J3HtEypTDm\nHC2WNjmDLnGO32XPiZogIv6RY8kDaQFjU19kAJptMEDMSizQ32+BzFRGCkry\neXGnfG5sqGSlSBfFl9tHkbzEuOkV32MXPu9CocrRdCaQRz+0XDUKE1R14Z1M\nH6/d7cbmVRgQs4VmN3sJbio7MfO5k4CZd8wUrWk3y1SIGNjXIRcH3geu0O6a\nL+NdiBm/XJ0wFlYqaKZwTNwRHwQs08br2KVXBGbHBI+O0SAHVMyeIRMLAzf0\nYQus\r\n=NXhn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyHAMKZCfB/WJaQp7gX4OAmT7J4oEvgiUTgBzm7GcIMwIhAI3vl+7UGxyIXjrO5AhvfWCKpfiBQqlKuxu1aFd5MLUP"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.5_1619593732665_0.7924554380408779"},"_hasShrinkwrap":false},"1.0.6-beta":{"name":"@uni/request","version":"1.0.6-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| opthons.url | `string`  | Required，the request url | true | - |\n| opthons.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"200\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.6-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-k7UhegcoMhE8veDU5DZ1PSA0OV83twMvf53x7PgjOrinPpUnafhtB6Vi52LVs1tM4Qxcj2rp1TF4HEg2p906Ag==","shasum":"7f1727476fcb1ded63d2d11e04e735294ecbb6cb","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.6-beta.tgz","fileCount":40,"unpackedSize":87355,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpMQACRA9TVsSAnZWagAAG4UP/0kyxo6Zq6+zICr+bpzE\n/5PhyNYnt3e2F8PVkUKiFwQO7ccvgpY07gxz1mw8kQdSQO0Dvtkx6Y0wjFgF\n0HzdYkbZFYUeo7GKwzb6j60KjheTsQhvP3KTTITK0XIT+Z1ttDqYbgOZxdBS\n8o0MdZXG+KVDzUrnoHRpVpRqLjwioxMr0PvB4diyeZAtTHPPc624TCVFSTlb\n1aWp4gbI63qV9H1lUM0W5W/zNTmdcf+bYE7KHivPTwGjGDTpi/5DNANzS4Mt\nhwrh6cCsAWcZlftOvG8mtbSU9hn6uut0Gd1b0y5jMv9KeML4Vv9BfuAgxc3C\nSvy7EsYJ4g53m1XSa5boq6dQyphdiREQWR0dzOo7zkjGNDXJQTV/ZxXMmzsX\n7pB9o+jM8EaD/g3thOcM6FAM/jWshyfMjHeGWMeEsjiE62VBu6rrK2/d4IXc\nvCUTMjM4Ych+uJva5he9uq8Jh+nsTr33Dej6v7XmV61T/Gz7rHlFbQvqAVI3\n7DNfxKnlz0YnA1u6iBuPHSllC1KpP1LaDGLqccMyVMzI5UOKW9GUncEAny5E\ne8sqJfv0HOMwcwQ2wA4X3egQfoy5Sb2P3ux1sjEmD4TAsoRmg6GzDrBysjEs\nZqiULQ5bqRljTqXy3+jl+IU9Pmh8OkOh8J9pZPw8Eg8XkbHrjw2xBwJBjBHU\nIiyd\r\n=qA7E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3JT/Qh5juYxeTwaY3XLs+cn832+AnUeNzyKnjv9hIHAiEAoT5gQSjn6USVaFJT3Hw4lsqGee11fxnZ/VjQESyFA/M="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.6-beta_1621410816288_0.4988490074993186"},"_hasShrinkwrap":false},"1.0.6":{"name":"@uni/request","version":"1.0.6","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.6","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-D2HrkB++XfNfH5sPX4IS8X8UQMC1NYKrqM+tRkK0VBncMyKu3bqDdeStLKQdexyDijcG7pMAJdMvu2Ol6aZ6zg==","shasum":"84e4c6fe4405f3490b2af72b5a2fe27b5ab4e998","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.6.tgz","fileCount":40,"unpackedSize":84853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrLk9CRA9TVsSAnZWagAA91gP/RKHpmCJe+a2avxm7c34\nLOzvqAIVV0KNLW5u8h/M5GvDrXCSqhfiE0YizimxShJ7Lgp4ItGPs1gl3sKs\nfIAscG+nk9JyAji9ABxCJIaF3rK704fdrULO4MU0Bydkr0p2i3C/j2fKLv5O\nmDNTBR4fcNLa8wItuEqkGyBXv18Nd2nPCKiFvVI33x/KniY8s2UpCzTr55HN\nnefJucc7UNt5C2HX9suV5VK/KkpOPPa0GhVJiNx1WM+zy7UR7Cs93TkTbjuO\nfHTN22p9oXflxU8YPmRJqHW34q4pwm0hBve/4k0cDSMoySftnTFs9SiNeJCi\nAPWbwYDhaUlu+d+SugcG/XoBmfraW3a5cm7Ls/TO2WsbfuMlc9RHExnd8XB0\nP8D6iQO0Y2E4O0bm8MeqnOsxPQNhhD/Hfzeem392G+IK5b9FE3eekruHUhB2\nuW9fjQeZJybxSoElufNa+F+xGDdxs/3b49+EGRM1npc4qwvk9i0UzVpCPfHI\nxuJMloHxlwnzt4GMqQXe8oB9WtOVdXmaQTMmsq9FnMUIHc7QBZ8pLb8v11pt\nRU2NNeC7d5tzuVawbrVxGH91qou1uGC5EY1unKVDcrDt4pRjYPhIOkH71R82\nmxbDIwh4ldp9fNhmzyubI6PGXhhyLzioefSr/A9oQIjs9gHlyktmdRXCCadr\n9nSd\r\n=46Jb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEICIGuDQOv4/Vowmj4aDRNUIFnnE2parAvZO62fVW87tQsTAh4ujo2g4tGKpH8X2Wyl0XAHlWVeBXpYsg3O72oqIq8="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.6_1621932349131_0.3924310345196982"},"_hasShrinkwrap":false},"1.0.7-beta":{"name":"@uni/request","version":"1.0.7-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| opthons.url | `string`  | Required，the request url | true | - |\n| opthons.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"200\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.7-beta","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-r9Tv8MLiBFi4J1NCnapL44WbYKNHTlFd4sP7NPNzthJ+6rS5EE29VoeNa+gql+oaZNn3xmmgitqOkGrNiRDbVg==","shasum":"867a141a6707f3361546349dac90336b81db9b01","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.7-beta.tgz","fileCount":40,"unpackedSize":85304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgriRFCRA9TVsSAnZWagAAGqsP/iM2SivFHy4ESMsTEL7H\nQRtu4hRRsIkV0jVT7c8UbeeRfPmhfOhR7vLggxNF9BLYzQvKGJUeDrWfheQN\n5ntEW2BW3jNZgDq/1FjV2Ft0t3aTkbgrcvkjo04QfhGQ/aGZVArdE3ztIel9\nlTZbLAxve2DUPSJzeLRfQqzifYux6JNxe4iSwLDf9Wc0fsT0IjBoD5GWgc8u\n9bJ9tveiO4KyG92eZ7mpHu+G2RyJqs0kxeWncPB9mNIGUZoMi9oomVDDSoOp\nr8GiZOZBGmSsgiaZDyahqNrU3hn/dYc0UibR42Yn7JaFQD332BEV4yFjDwZr\nT9GF9xK/cSD71BwyOS6YWyW+ViQO6EWLrEDFb/QhcVxx964ggJAj8p+JVoi/\nkLgkBiV8tO7HWN0snXSijuJ7v/qaHpAp6AxdN9I/K2L+ykZIqYWvuhgRXmXu\nRvs80+r+WchrGG+Uu3ci9gj6JXBSRaQ6MPB9JpmvhajHSWDHSNHMbTG9Lyoc\nUqMlTZIAPQ+gVr+t8w4GIf564u06YTli4CcvzoOXm68W+uU/9Q7a/ooMzHz5\nQaYitMkgfyGjZmxyQJz2JiRTyVjLSHjiRlUh1G8XGKFrjEfqMNO1HWAyz/W7\nq/iO7BX7cCvSo6JrWsPz20xvWaGy38Fi+ywtnvwwDSt+vL5CdxIKoPPsV5F7\nZXDg\r\n=+O3e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChfUWr9uiL1J69siqgLQpWw/wauEWxCtHTwRU3P5RwXAIhAOBWhJ6faP+Y9GHFbb/FfziD3vvwLIKIXqrDFbzX9ULH"}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.7-beta_1622025284562_0.2554703549429649"},"_hasShrinkwrap":false},"1.0.7":{"name":"@uni/request","version":"1.0.7","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.7","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-mB0KhGQeG1QrX4gl5zB14UHbcNmnCb+DdYT3P5O20iJ5QJNNLHeli+9LpfEHgZoTWIr1dAbXLpwfgYI+9oMUNA==","shasum":"46c713531fa9da31231096a63b6c1c2d7bfb732b","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.7.tgz","fileCount":40,"unpackedSize":85394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtam7CRA9TVsSAnZWagAAQTMP+gMTBbOwKRJnCFv0CyCq\nk5b22vVw0uYwXlbE0sqwevPKyeR55cMOnjRidExgPxdYZ3XLhT3BJdEXTWrZ\n/XrPre4Iq68afl4mzz+qH9JNhrw2leTvjc/06DQ+NnIbKHe7h8wsdyToMOJc\nOHpKFOYIuNytNALezpvAIoErIG+nEU6k80FngL/3BR/sjHyGx0x6uIZ0kkFy\n9R9M6ruAB/WF0EEPSUUQKjdBQfifHuF8KZSCEekhf4vsWtnJInIZo9v4NCPd\nPuyzYcBYsnr6FPVrFJSbZ0pEsSCQrScdgNPy8KewLPuu/aogQqjBgpfVDxRv\nImIHCgWneHxcPRil8ja3Wpquii/Ik8BaF9BhQVXyNOaNc5+cmSVilpVwni6t\nYVlPLMCber97taeOVsTjyctxeCVhy+TS5rf0FfmJq8M6VCHMQsNUo8KuBoRR\nqQwl+KU2p2PNOEtwkB67Nq2U+kdjPYv+/VizKipf16yEmsF2f42sazQzi/KT\nOC5ZQy6XOaV1YGCJqPUx31S6wYDrYhziUeyy7067Bcz2HAoJDsg29dLSbaca\nQIu4fFBRb5DpMPsJNx9x9jHsPVm0kJuSw0AgSfszcI+Beodf19TJXkO1LYuW\nDrWe3+WKFQ3GOqKFWs1OjQgBfe9w6f4IvtAX7UeGKr9KFtUAfBJYz+IAQUzS\nnR/+\r\n=lHVE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+0pkV0GXSdb9mJccmzLQuTRl1zz82xiiEmdFbpcKNzAiBye7qK9SVVoXQCZSmpXPuAWChLycZfL3L6WCQLx2VAWg=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.7_1622518202728_0.24386200592947405"},"_hasShrinkwrap":false},"1.0.8-beta":{"name":"@uni/request","version":"1.0.8-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| opthons.url | `string`  | Required，the request url | true | - |\n| opthons.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.8-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-JH9IU+K+YP2ySMbMT+yABQl/U8XHS8H3u7Bvkns3OEVRj6sGIFPafeLFrCRTXyMz68iKj9qVPg+O0AfcVVNEyQ==","shasum":"ae38eace5be84cdac9caea0d12a6750e4735b195","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.8-beta.tgz","fileCount":42,"unpackedSize":91133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyGzQCRA9TVsSAnZWagAAcRAP/jdcWuNhK8+CxEejb3jE\nqS8RFCaLinAGCUz7tvZ0/MJOqJ708zC+xLFw/08Ms8XoHMuD9ZnKJ/wAWQAJ\ng09rsmS/vPx88HlZO+WnLfloJ6vmvfLvfYTCCacGyAM/XVjXWN8Ys23901VX\nvb95LBEjarUCZhkxh2JCSDiugJrwPhHEDvjO9fbWzY9Z08RBrJ4dRtNMofq0\nnG36gUbD8WTRIjBkQO19RilSgUVOIondeBeILQosqA4xEDxlrDK4cy63dXE3\noZJr4iEN6qi560C3Y53EQovQadvbcJZ3WHL4lpT7rFlBZw0JEoTSkAiivgLf\nWtcXv7D8DEWCKrEOMS/8JExPqadjEEllC4QLqfaO9qRgeiytPXd6d5eKg24o\nx3KQjDqIZ6yi6UL0F58f4LJo9nAwEwEn/BaNtMEvI3XgI0woP7HW061C/DLP\nMIFD3Ral7MzsHlV+1orz2K0jiVZcxgiAUUcjqikZticwVn8BgBWRJlrDdGWF\nOLRRxs78k3e7NmSqcAoZklRza9cT+q3UkE7c5eN7RKhEPWCTzssyLi1W8gpw\nyBvCOjJd2dmb/bqkXOxnZYTVgO90cJkEHht1bIPvg4zvfTvSO831k/rN1P2h\nUkf6E0kMIznEycA8vnSGNmlCi65wk7ScErFCdjHQddMH9X88trvnDYlv39qy\n47nf\r\n=qnEt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIUhx9S0mtA5+Q6DhqQ0kui2cVywb4Wxqy46GQXbRt0gIhAPvLD6aX/5Hq+1nsX4yNPAOLuvIS2yG6ZKQZDz/jUoip"}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.8-beta_1623747792371_0.387015043429062"},"_hasShrinkwrap":false},"1.0.8":{"name":"@uni/request","version":"1.0.8","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.8","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-Ds85ck2c+9RvA67fW5PAN4w3dLbDKTD0RwsakFOG5okXFppB4QgrXbbmMSkZazaPpBR/5Y9jhpl5SRxJjtxQbg==","shasum":"bf5bad6a5d97b9ce88559952782f194f6b0bb6a0","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.8.tgz","fileCount":42,"unpackedSize":91128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyWvKCRA9TVsSAnZWagAAzuAP/0XTd002K8WSWva7ny+G\nsn/TFIDU0bRgUbp5sh4IIgYTj3eCFxjfT8DqCxq3hIMiFjHfN79TLYAISwHa\nJVIyGFVYRA05Pykn339Nt4fz5KHMuO4475p9bgIW0G6Hi3bAmjtFY+nj2aXd\ndveeDfYCoofsBkCrbMJlmBnEp3ix41JNqav6IFEMDfGgO9lFYVoXsPrsjEuU\nfr3Ug3pcMgMo2V4gpp9osxVspXUVGft9DAlZ+t/RVcsSpoIpPDVAxKbu5vFy\nORBJj+w5yeiuABCmhnFWSoR4hnzD0UHlits78uaaE1QqAQ4bv09ThqIrwZD0\nNJMQ5pKyXV9cOvMwIMIHidPycqD4BwGKhD/HeYmRYQPfP1mVUsc/Tq9mEzAH\nJ+xo11IWi8sP0nsHlvmYvWYYlUSMMDOmDKCDc2QVp3ehDt31R29r8EBHVgj2\n6DTYVe/lwj2G3w0ovE1Kzg3+l26/oBRhFZq5b1PWSNCf9IkVHoblUJJ7nYcp\n5K4ceQI895Sl7OKnBppsg1QFrOHfG4oHTDzXaacxo5sng9w/7/SDblSYEX0w\nhJN92g17n2WeCA+n+rpFl6z+2ZlZ5Qa98EtMjnLjXhGM0Mu/J7mgNCSPqIMw\nw2Z0vhNWXDUoviQbyMV7w7ZgdR+IK+mEqma4phDHtLv2UJT2wNtlrYpu1Z1i\nPrpW\r\n=+Ry0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRqY8D161dfWUZvA320o+xtNMNKYE3sCGDCmv7K3L+oAIhAJMzGnkbaRdKuhkGucQgA9WKviHtQeVOasIPciI3OO4m"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.8_1623813065862_0.6508159273026402"},"_hasShrinkwrap":false},"1.0.9-beta":{"name":"@uni/request","version":"1.0.9-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| opthons.url | `string`  | Required，the request url | true | - |\n| opthons.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.9-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-ORIUlD9KVwxXjYuTlrIDBgpxsj+HAiyN0QRCA3VDIpf9kXQVdnlOaq2+RlfesREpQ+4I4wZLoDs4rymCByyAlQ==","shasum":"08c1538df80d6bf2c9440be89b662adfd62dfec5","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.9-beta.tgz","fileCount":42,"unpackedSize":92402,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgya4sCRA9TVsSAnZWagAAsIIP/3siyn76WvgwC3uSf7D8\ncXtRFa9vQEc3OFxvvzt7gvenLuFiod7mxrK2lu0F3e+kAFaIsDRnWDplJApO\nJXr9XDBs9bYQ6thmUj0TgVlbXgT+Eg000wV9n5hcrENF/pNHU1LJvPTtTxlb\nVyAlPo0dPMjo1sAiKq0RAUqQlUa79B64HxSXHvQMMcgoVpkihT09SaF2cwGK\nATQYLL24BKC24ZLjAviHIKiy2JeGQB5C/ZI0YraeoHrorLcRopfCpIQP3/ku\n8Xm3pw76/9uSUFEeUsvu/Kg2g9BpdxLQns3PZL7N4iJWaql7pSF/ypbiJIDy\nCtdiH+17I7UqXI4ddqjrKNq3uYrbrj5n3nuMjhgn3QEBl4tMXYWmTiIzwQ2W\nfo1ejyuq/wHq3hWEX3/1k/e8360/o9qQTsgT0KnET+m1UWzqn+cSSQKt0Cpm\nv6gU3DC8S5GXuISy5B/Zdcr8vgjGIqqe/ighfWjVLGhkhWWAYx814lJdEw5J\nJFMprk/N3WwiwgkNTtxbLdL4X+bbJr5JbcPee57WRnAnG0YJtMZrc95HxlH5\ncHm41wH9Q1ieawzvRMa+QfBzOGGyotXPQDqhB+zxJxkTdUwLnolsusLEe+5+\n0pzMOaZwSvKaa1tTnyYiESeEV08LREomT2Bp38kaLjZ5jhy45ldsRZtdfZJx\nzCOR\r\n=a1x7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpQhaC0pJuXmcURVIbN4Fq4Vl16bkbcOYpzD6/qW2kfAiEAvHd4F6cRXNfKwQwcRIWKplfy9KlWKthfRYR4PhqIDFs="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.9-beta_1623830060218_0.8770990649269597"},"_hasShrinkwrap":false},"1.0.9":{"name":"@uni/request","version":"1.0.9","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.9","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-EiGEJCUbWrLIal9y9+pOauNYPY3xdq75LMpoSxvLzyKwKQDlw91/wsX32zFauFfc1RCfcA87YolvkMcCevwxtA==","shasum":"1b31e87864efaae62e99548ef1901d2e6069ae07","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.9.tgz","fileCount":42,"unpackedSize":92397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgybt/CRA9TVsSAnZWagAAoYgQAIiHecWQ/jGfWGPXWYsx\nCLn4EMRlDNYQhq5KWF7xiiFJ/sADM1A1g1/lb7ouwX/ybS+yRZ3z+lOiHNOw\niAmJGEeVnosmF5GKd9hyktGkxjO3IV05p9GwcTo3Bs66ONzey7+9rDICVows\n1FJlQbimWuYM0zYAbeiX178rLwL2615wqwRt2gJE0Ti+TYzc9lZI0xol2qUz\n5wzcoq/yzGu2pXOBtPw9XOZHwtlJuIWcgR/1UKwCn5Go/vuJCeA+KZhfPgT2\ncnhwh18R2TCvKYf8xWe2QjjOlguZoebd03C28KM0Vex0rNLJwXRDFZ20x09K\n8+fRbf9HV3/RIs5FQrpwRaxTCJY9LoXIqJWZVwoO01hh1jD5zLYCYzehdTyu\n1Y9fdfZDYjc5q0dZuG5iP6wZZ/AxTqKWa1jVDjEPj2rH0aNgiC9aUYDIo/FP\n8OymV76nT4K78BcGWtIJh3skl2yMeWFs++rHmk7CA+qjal/3cSXraYKk5PIo\nOi9O41gx/hv5xu4wC55WVn9KTm5RdnRjGSCyDxbUrzEllAlKYgH32py/2QAW\nemB/sZ7WC6E+MmhpkFJHD/WGSZhKcoanIsw1M5r7BAHvtDVzw+0LSS/tU9X5\nIlgLoHVqD9lwXzFiOtt5eoM924l0UAS6ka7uOOz9b5PhtfV6epQsdcyGd3Li\nBz+Z\r\n=Z5h1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBV/dE9YWeSz8X+nMaPL/zBqCS5Wf+7pknYW6sIraAMQIhALzoHxufwfoEWq+apxVkbo6acIl6aj1GDoJolT5NPs7m"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.9_1623833471297_0.498824325021082"},"_hasShrinkwrap":false},"1.0.10-beta":{"name":"@uni/request","version":"1.0.10-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n[![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\">\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| opthons.url | `string`  | Required，the request url | true | - |\n| opthons.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\"> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\"> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.10-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-Wx3YovTAB52TrvRFLsQWQ7JbRvQbmDW2Y0dXpQCLP72IS7OIMCjW0F4ECzkAuy6c4mLhfgXLZKes7DGdy6W/XA==","shasum":"7cd3cdb60ceb6e73521602724790d0c8d10dc607","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.10-beta.tgz","fileCount":42,"unpackedSize":92405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0F/YCRA9TVsSAnZWagAA7c4P/icYP8vvrnvDzXKfw+X5\nqu5NUud5AEnBu5LGZSkLryusbTihRM2KSIhWcPORh33j+gz0yKMsnpGwZuC8\nCJfVoJ3+ErekUFIM3PiCPDB/1JdWrZVx02JQvQLNxW/4+FHboeIcj48fOTca\n1fo1elwMjiPTbCMuYLz5IKPTNKtw2wKWb0ErS2EPqruIDoxFPiNKjaH7wd1o\ngjwiRJtwIq7YVWreRTU7InYNFE521mQuMDQKwdZy28QYuYmBV7rxF2udpSX0\nwh1uT77kV7lSDOSXksd/pJhzirEjdDOttjsra3vZCKCw/N0Umrz4sefaHg7t\npsJaWLw/RSzgbs1QVdoiFxr7e/kJiGJCzcyCBGAX+SsWlecEc0GKP9+uG/ex\nzN/5/zIx1vDnEQLIbAYWqK1M9tsAgvCuGsI7OzM1W4XjI8VeZyZma0QxTaRZ\n+1/Y5zgYp+gtbL4uDQ8fOQQiEUlq3W/Hkhs80UnLPaq20OeOQs754I2aZFe1\nYinwVquWKh7vh1tamyMmZz+6Nt6EprtRvVNor3fHrYSTNr/rgcg5TTZWmuVd\nEACbI2D6nW/nIB1P2sMAWwsSXirEInYugIXqmjIsfYmVpel79dj/rsbC6JjM\nK9InnXmzo0NOs9jfFJFxas6d/v825fnbKFxbhigdkYPh26s/WEofNhlYOvCe\nJd2s\r\n=Zc6n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/fp64pQx3WgZ3EcjrrNTcBLmJc/ZIUoR0RETKt76jpAiEA/jSeSFG6yo+nLDSconp94kvZKo4xvdVoaJMj9P1QxZ0="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.10-beta_1624268759896_0.8724528135218763"},"_hasShrinkwrap":false},"1.0.10":{"name":"@uni/request","version":"1.0.10","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.10","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-uJQNHXjD0inqoPUKBhDA25HecjPEyCndukAlNUpCTJiFMHJDDofsTitip7h1nUmy/phcho5gIk+hNfiEIEHsMw==","shasum":"45d84f7c6b1c100f132ff6349da124eba2ce97c0","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.10.tgz","fileCount":42,"unpackedSize":92400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0YI9CRA9TVsSAnZWagAA2e4P/iTyfoSOs92C1yg/43gv\naAMUSMJ/UnRbddbj5UFdf5yCYNePjZpSujORhpCL1JQy3GapSkvBvJaGAM0o\n59qAXlbjvWvFCQLp4R3+pQDML3c26uOfvR8TEJYFjBUd4UHjD8qUcNggCni9\nLvi2r8uwES8uuJkYDkO/EuGlo0UxHwk10kNIYQfZnU0sg1lBDJgJdwSkUKPl\nT6QglwLhjIKjmCC/mOY3+gCMdyushxMbscGL0fLEDANltMUVdKpgrkJXmeuJ\nr2oH4DFIfLCj5Vnr4tjlZGv2zhezDuqttVwnrZ2ZZrk23O+pLvokiKgGUyOd\nhL+6gKuxMIQUU3T3IHIuU7mQt0cKG/9Si0m7fcL31rPlKVqHZpSLX4ZwThU1\nfm6x+0mYR/4SEZ0oymrE4Vwndba8TGGPTt5ZQ+ecmqKwQbiXRsOSxapuXSQr\nK5verHCB09FA2YwcxNsqwQHtaCaXIe6ZBHPWCxTKFHGrEPcq45H4ywSi8mKO\njK8Shg0TO1dKRNNoXWy5D/MOCB5wOsh/W+r5vFzwU6G2pJfUcamCwRLNURZI\nZkX8FTkUCTwEfTvabRna7oor0TdiPGOMePJnCkWGw0L+JBdJubAqDNxY6mxn\n/2BaDyHCO70yDFSANx0dTpmuryMef7vVTjapmeIxw1ottTIf1iZTlxf1ivrO\nQuHR\r\n=0Wa/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEqrj5M2JXEyCJ9PHE9qpCroyhSbwRu9zKQHkTAIw4+tAiEA4cqfQTIWbtunYPfjblz+d4g0gF6M4aa/DKstQ32n5Cc="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.10_1624343100803_0.5412562167736432"},"_hasShrinkwrap":false},"1.0.11":{"name":"@uni/request","version":"1.0.11","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.0.11","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Ycc/h5jmSXIV/DiAXOHKIhtX/bmaFyqI3Sq5sL0cGyxLY7Oac3s8qDRw5jAadAQ3Zinc/Exh1Ztc2jLkw1Fo5Q==","shasum":"964a114b0302bb28cea0ccc7b6c5253c47a4797e","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.0.11.tgz","fileCount":48,"unpackedSize":112307,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5BZdCRA9TVsSAnZWagAAjdYP/iyQU5xXUbC8nMeYh7Bo\n1SkT1UcP4mqJ09JzBO5S6K6zo4Q30x1MyHe6SJyWB8o0CboHu/9LL32BUbk8\nSiy0t89/HqyulcWhVKAYSVeft7dnjmk+vkbiiLnISpXoeooQGLIIxjiZ8kgt\niqT8Qev5y2vZe/M4cLCHe3OD/hvyofWK0i4Jb1ujBjlTds42yk1/li5lgkTR\npIWgbJCGxEqllu/V/QkozSRD0ihyME4+oVKyTpd349AwpQyYnN4ErsRJnUVn\nCo7dVysTnm/vsKRbCFVRPZHtB93CdJDS3tU/JSrd+NGkjXPWrPbORzb7huc4\nF/RqhkVeIjaHZmnzC5VeBdTNi/8BGYc7q6BrlqyzVwiyG1uGdHVLm1Fi8W4e\nQFI5lRXlH4j2qvHUM0IlPQE2rNfJrEdeHlBH+zrZgggfy+dV3A5U0s/RwqcY\nyqQhAcy0BQ895G1uYKugjtOpNV4FsLhc6xqNvUWByyGsL6LfNfemIQvSi8Kj\nXpY3IWf7obOWRT9Gz5hZYI8O2OeiNxEMQME2uUT3o6aBLaykGpU+6OcabAxN\nqmsv2j7BOZLO+LAWEx6AyaNWQY0QeYLWmgKb9UmHKHzTALSJ+SAzNFoNuHUL\nHCJeI/D4+OBY/9ZRdUmXUe0F9tuJDX5IGaQq843F6yBlffAt9pZWuFC4FoOM\nBv/7\r\n=NavZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8cBZh85z9QdrVCpiV3mJ69OtvbpwuG4+snZ9U6QTVkAiEA4CBbKRHY7857ETbVYpf1HPBUsJuX8k55L2UMic3Yh5g="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"bunko","email":"2leg@immaster.cn"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.0.11_1625560669080_0.6852096140364452"},"_hasShrinkwrap":false},"1.1.0":{"name":"@uni/request","version":"1.1.0","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request) [![npm](https://img.shields.io/npm/v/@uni/apis.svg)](https://www.npmjs.com/package/@uni/apis)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.0","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-U29CrEIr5oezD9FJfZgUESSGhwC5BwXvELDonmDjnbI2LmRFdNXgwr7ViiMzYsZP+EQcDnH3hQLfPQos1aGvMw==","shasum":"87f30fdcef7cb0e211b1e63c8d1af15c49bae4ea","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.0.tgz","fileCount":54,"unpackedSize":119664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFLoSCRA9TVsSAnZWagAAQ9oP/35s9EqTWoEYoMJg4qSG\n3iscuZ5vsWXDANv4UtnaBbyyOONWA6btYtgbRJMo67+BC1nNjuPPByajXpeE\nMDrO+/7MYG8nOfYXjPqT+hWpSnASLQh7maPqylKh9ukTqGwJBHLgidaoZ3bt\nrrRhQuwZDw7ZRA9ptzqXDAWDNAe4u3nb1WQhwwz2OqvoxIGqUIBlLCqxLVJS\nNwv0TZS4eQrLBb63Tb7ySX9BEbED5sdv6agEgWcTvnfA0O77/2KPjJeRTKPM\nxcHa8kdwmau5bJMsTWSGY6FptONrMBkUBQ7DFZIcPu/zcvEA7RIOdWWzRiZl\noj5DK466tZwyTBlOx1p+1CeSvOYSCoAibjI/aPCMAwGU0Xh0x8/jl3pxevNV\nSg3u9rkOl9VjXJzySKDmwjnrarHoYydnKMCMOwoyxgU2trlccr4jJLiaOLnZ\nRWZsC1a8bWFveJDhHOezHtmo3hY89VjiWIYJLbt1EUlVFDnPc1QMW3Uf2CcD\nmMNsLyVqbMC+jHb1PANRNqmQAzG58i8Y/t4PgsFjTa1VKa4UntVGEpL3zq+y\nGwkT3HXsDmyJPF3HSNpc2olBpKvY5FJpCvtjdwj5bAhHCr3YCd2KXp9pCh3m\nyjlDydf2YRrB21kRN5UYfhd6XQacb4T8SMPyVYIp7+KvPMyziUGGbKOlBS74\nEMdI\r\n=322u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDF5IuziaC1rJ4gW9hIrN9HPuqEc+VSviEcaqhST0sBQQIgcHUKsefvpN/T+gq0NaCVR9EN078Hga41uDcbrMiMMwY="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.0_1628748306594_0.8200608443092023"},"_hasShrinkwrap":false},"1.1.1":{"name":"@uni/request","version":"1.1.1","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./lib/":"./lib/","./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-mI3321sfDgNv3Mf/PT2uPZ5yzLfvvuUTyCUwhM2MiFeszM3EoHXbYP9ByfZgx2FW1EcY6Z5/l+WSRLQnhBTKHw==","shasum":"59eb89164d15fd803559b2498eefad64cea2d633","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.1.tgz","fileCount":54,"unpackedSize":123720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJGNOCRA9TVsSAnZWagAAcNcP/jS6CndqQG6TY6s0G3Ow\nEw6j1jE3tqWab/UuqN5AyTQY9EipjlOKDXz6AfSvxhhsCSX61SX8Tnu70qSL\n55rX3IFd6Fsd8RVPgbBiK2LajNMGFSXmUMVT67ehMEaG40/Oi5rNfeBa3zhY\n8GWZ3wl788o1blvCC6QkH5GlC59eruw0AN59LksAhmEPmMKl+Zn1Q+x6izxL\nvSKrroznojEGIHfjBo4jHkmw1RZjGE4LRPUSmEN48mv2OzrBukl3F9LkxXEF\njT+nfFpJFRMd4cYrCXMIcNU1VM4zMegn4vris+blbotyTrnoCEVyadkzza3G\n9xfDTAJ3wSCqxH5wpolPzSV8JWRLDPFmFAkJy8bfyh1ziV+sFr5bFZeqhdRe\nleOG+Hm7b+7WURTemI7V+arKf+B086hLVrwBWksyXeziJ0GrVv6X58/AkA0r\nK0VeXwBcotY1NTmxXIi8J1pqu8xUtPcxaPTgeFtOVQYCdgoxt0e2LAiZrqAy\nwVBB2kmAGZz4RCPxTTX3mMlmCG/4K8xAj1XBvQv1T64Q/W8+G9yGZ+GP9vw2\n8MFT08riuMjiD/Qq/Q6HabbON/c3/une/hUJ75Q2k3rO6ifoPpxGqmMYzyja\n44WOptYeA6XZ+CdO862f6SY8I/Gb4UTafExbzHrRggqUMWkMuUjMlmT4BKDw\nVJio\r\n=oUG4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEH7AbArcOJbGCzrpQlmgDVBNnyES9xr4WI9OFaF3OwDAiEA92GOUyo+hY8573189Xt2+oN5R11wuAD870Q7DElYNOo="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.1_1629774670169_0.006471930649778468"},"_hasShrinkwrap":false},"1.1.2":{"name":"@uni/request","version":"1.1.2","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.2","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-EexxTNIlfjt7a5BZY44+JWCEnzd9736aJEdbxCe1ZMk7qenrKWkoCVKfoYVkENjKyObyM1UH78GbaLtYSKR2LA==","shasum":"4bc7b735825ebacc43cd2cd900f0aecf262b2aab","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.2.tgz","fileCount":54,"unpackedSize":125704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICejbw5QzNtAFxy5b5dzhZrugSsC3OmUErswy2rt3HsqAiEA1VntGtZVqjazrbxzps+36UWCkBhv19rH+/bNufvEkXw="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.2_1633748021872_0.0534902782329314"},"_hasShrinkwrap":false},"1.1.3-beta":{"name":"@uni/request","version":"1.1.3-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| options.url | `string`  | Required，the request url | true | - |\n| options.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"快手小程序\" /> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| cloudCache | `object/boolean` |  false  | x    | 开启云加速 | <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.3-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-uFlJmBsibXJm7pJb7el3qVP7ZqhmKqZrJyZhLflDkAifMSCqShcQvxU4bs/faqUxRdMzCwSKPxn5jOx56fBGLQ==","shasum":"660fbf6130dfc09a6e63a6c20cf9d0b09dfa8dea","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.3-beta.tgz","fileCount":54,"unpackedSize":125709,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYFQhv62i8Hk7UAucRXkvTOr8yFCjXIurruyBeh7JZYgIgTqWCxCLo0EROeTPz7hyimI82QOSxhieUN2YPU/ftd6A="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.3-beta_1634015266919_0.3072957538407075"},"_hasShrinkwrap":false},"1.1.3":{"name":"@uni/request","version":"1.1.3","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.3","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-9Zt48IOetiM7HyRJqiK4qRESb6r9dXzHLz6RhomkN3P6ZISb9z9WunFVNGgTECkuTdsts2TKSGBTCJsjCJjlMw==","shasum":"33653a0d8db16ad7a9c16e55ef755bec9df82beb","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.3.tgz","fileCount":54,"unpackedSize":125704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZp55r3gjYFoD8R1XlfNH6kU2xAebWLp/F+P2CwY/BWwIgCSH40leN4B3oGj2kJe45nd2OXDYXJ9p302EpbSBKF3M="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.3_1634025072920_0.33434717394779234"},"_hasShrinkwrap":false},"1.1.4-beta":{"name":"@uni/request","version":"1.1.4-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| options.url | `string`  | Required，the request url | true | - |\n| options.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"快手小程序\" /> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| cloudCache | `object/boolean` |  false  | x    | 开启云加速 | <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.4-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-bSyObbkPOw2sQM2BQRnBxHDYb9wndIkIvK4bun3qZzF/Umz5GazzCO+dZjLWtpFnUTYP77zBm9qIuPQnXtdHVQ==","shasum":"eacb48d4c42d3942d2569462c85653868cb6f795","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.4-beta.tgz","fileCount":54,"unpackedSize":126414,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHj32pcrxWqaf4nDkjh+IoFPMIcY4vVdJFDCYB7FdTV2AiEA3Xyoodg5oUG3v/FAElRSyew8EJrGWXfYLc9rK+vxmWc="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.4-beta_1634545344261_0.11444650613163376"},"_hasShrinkwrap":false},"1.1.4":{"name":"@uni/request","version":"1.1.4","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.4","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-ocahjdepGHtGkli6/+y/D7Pn68Lo6YBihB0LS9/MRH2FytFwAMhJw+iBlLNB6FHRcF2arkCgFMzi7rRk/ZXtRQ==","shasum":"f2f188c9f2b42c6d38403f5b4bde0474f4d208cb","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.4.tgz","fileCount":54,"unpackedSize":126409,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClFex/pjqclJy3bbcgdraQCyNcwdgqicCgMdRCbkSU5AIhAP7B+7V5/JNFW2wNnacRRhLo/7FvwEZggiR2LKysikth"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.4_1634547495202_0.42072318181170276"},"_hasShrinkwrap":false},"1.1.5-beta":{"name":"@uni/request","version":"1.1.5-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| options.url | `string`  | Required，the request url | true | - |\n| options.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"快手小程序\" /> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| cloudCache | `object/boolean` |  false  | x    | 开启云加速 | <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.5-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-IdiCTxekdyOSbdTLRUkuE/hfiRUCrq2Bm/ZwbeAa+0+mNijQEibtoAeF4dFVcCyMlLqRv+3oVoKxSckPBu2u0w==","shasum":"2009d95ca3128eee88f2038dc8ad9beaa3137316","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.5-beta.tgz","fileCount":54,"unpackedSize":126480,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+Op6SjAXz0EbFrTrzYmhU31NKhRbDTc71CVcFAjp4hgIgFZ/2QVF0+c3ZSmoSLHUibrLvoXdgNpFrLW0em6ztby0="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.5-beta_1634632433110_0.3437136486782739"},"_hasShrinkwrap":false},"1.1.5":{"name":"@uni/request","version":"1.1.5","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.5","_nodeVersion":"14.18.0","_npmVersion":"6.14.15","dist":{"integrity":"sha512-JtKUowJLrm0ML+5jbsue/FruoAUFOVHG44smEKJ+6BrIccBKHRiUgqei1t9ZqGAHKNpwsWxkmAKCzg+HWiMZ0Q==","shasum":"99dacc59bd77687fbe6f045b30263a2401d1d7f4","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.5.tgz","fileCount":54,"unpackedSize":126475,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBWMKJBt6A0QKaU4/frf8jUgVDJZaxDVgalFjfg7gqWAIhAIvfpG0x2wG72xwkl9MhcqKYX6XNaiLteqtSPYd6XlXT"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.5_1634633346974_0.5369719811956706"},"_hasShrinkwrap":false},"1.1.6-beta":{"name":"@uni/request","version":"1.1.6-beta","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| options.url | `string`  | Required，the request url | true | - |\n| options.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"快手小程序\" /> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| cloudCache | `object/boolean` |  false  | x    | 开启云加速 | <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.6-beta","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"integrity":"sha512-W+O1903sb8cRfYO0tPRr49F7ViFywCJQg4NW2nWLdO6ZcPdJOJiWJKMWy4YXV2Tg3rrkodNVoMGlzSd/Um0Cjw==","shasum":"647f3fe90aea8485683b36b0d61e5d79e6717fcc","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.6-beta.tgz","fileCount":54,"unpackedSize":128407,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRjrhuC8zlbemWmPfe6+zrihgBnvL9XC3KwasAdowc8AiEAoLA80iVNAjNOogkqtwe9SVAcWARRKD8tHSTEMpOlUh0="}]},"_npmUser":{"name":"bunko","email":"2leg@immaster.cn"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.6-beta_1634718638381_0.568775601793903"},"_hasShrinkwrap":false},"1.1.6":{"name":"@uni/request","version":"1.1.6","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.6","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-ljr3p4jbgdZeQy4rZZhZiKBfbKXvqQyZ9Xcspke0ZiBU5ndiRCNdle2UCu2ms7O3E/KYQ0pRlxuoUNYI+DzabQ==","shasum":"15e7e8ac1131d84ac1f1c723c72564401b77c3e1","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.6.tgz","fileCount":56,"unpackedSize":139059,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDn4+z0stjdPushdIhidMAp0V94Goz20yK/6ALL3rVO/QIhAO1SKtnOWaU+bFodRvAnmA3O7s/tPAt8uLqtyLMcQPak"}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.6_1636011848468_0.6076366275637608"},"_hasShrinkwrap":false},"1.1.7":{"name":"@uni/request","version":"1.1.7","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.7","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-x5Rl5CDNYXR06xqQJNyXZmjmZT9W98nXXGdA/Ij3FTuhHUORJUOlNK4Ql0yq5gwo7AU65dCdG6mhVqhJRb5sxw==","shasum":"965f6d56aab88caa8db88a4194c0d6d3f5559e8b","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.7.tgz","fileCount":56,"unpackedSize":138907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpw3bCRA9TVsSAnZWagAAhycP/3IsNjFLaQr+4fKbrDOr\novDVW/nlWxUOtwbL16aKnmfviCX+TCRixM5BVdhlARDhkdfbaWwGf3hqXlLQ\nSWq0q/MBupoGjz2TqeQTEbPuOVvR/P7CjzRyvAFHmRZP63XWSAU4NTvxVLY7\nnUjALFPDrMgTnU5l5Zm1O3F/pq095Slluu17J4BMgysYdn2TW4de9Myy6GUF\nd1WQQrUfHVanqmMMCqDEDcAi1Ldocq5Ek6/YwHWdzXdYhhUCzauYEM7YsTwJ\nqEW7xe9nMxDC7OMfEc+3uAq3e94VhXTV80J0KOB4cflXm7VMHS2JvjzMVHF6\njEA/MWeZo6Hdv/yOn+i1hUDc0lwjyynAXj5SqRYryCmM9FYZtcwq+mX0wBXE\nGuzbr4N9clrrTO98zz22eUrrTPc7nIyq38ubvqp7G8/PM+KU8RPqhcBEDuRv\ncZAstpM//FQ8SjS2k+CwV5Ks2WU5829h8QHlwYcTgqSSi2c5UijpHPNfNjJf\nHmP1e/HPDtQI36jDNyCkV6xmiwSqCssTGnWyBfV+kHOhzQBsUz5hKd9v1Rs8\nVTwJ8alvNmDUoD1+29OTbFbyKM2wETpUsP4jwLIHi+9yuoatPZZQgRYYqMVa\n5JBBja0x8f9bl4ymvh9iGubwtTFMLj36QreQDo/auwR0UiHCoHpWvWk96te1\nq+DK\r\n=i9GB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwOpt3HeJcn/jin1U1ru3BwfAlMoCOUY4ohoYho5A8lAiBVSTVKZy2S2F8r/xfjv6txczst29cqmIXzRBHCgKiNWQ=="}]},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.7_1638338011328_0.16990368994878136"},"_hasShrinkwrap":false},"1.1.8-beta.0":{"name":"@uni/request","version":"1.1.8-beta.0","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| options.url | `string`  | Required，the request url | true | - |\n| options.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"快手小程序\" /> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| cloudCache | `object/boolean` |  false  | x    | 开启云加速 | <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md","gitHead":"06f8ec5fcc090a81a8c11c30e095aae12b754142","bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.8-beta.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-f9/+5eoKUu747vG/8XbDBrYzngqzuwMFW8KhhuWSagadnpEAjmWqhy42V4OS08MeOeYqu21PgYFTUN7lyLHQiA==","shasum":"4294eab04e414a7c96c850ef807062a23fc38ab9","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.8-beta.0.tgz","fileCount":58,"unpackedSize":211897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNE8UtJK2SJBRj/XiOQ2kxa/laZN9Imi2EBJ58JVdkDwIgYAKBAB+d8z9qFu+PduwqlzK2O3Zk6CHTyXajZVaF5BQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4k03ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrPQw/+J4Oe1FPwxwIA2M1fXsvrMBUxiHwrPBMHC03ONYIcUDEcBWYb\r\nqzxK1mPAWDruipJaVbtGbVy0ORD1GqUUwtErzoqvjVamNXCZFkEaR77DHHmc\r\ncdZHyD5tHoM3i7lsa/Dss22PO2rLKxpmJ9aoGmoTIwXZNo9KlyBevn4Nz85U\r\nIMW+Lbiyftjwv8xMRwYCnHmfNBvosMZAhh1rgoQ31ZZQAcO22YCqsytQHiIB\r\nlM93VsxKZI4qPysF6XGnvXxJ4enu2St/uUpTRLHCLALJjclvluowlGEXuzb4\r\nya+5L07ebM5TeMdIOooh5dYYn/5p80zAqXaxYZ53GmleLa8m/GWzrTzOo6FB\r\ntQfU8EKNt+uRnhI/o5EhSfr/a0kn3TaYsYNPHt8B5CFA+B68qsNziNRg/Puv\r\ncGnbnOuxQLK3mX9YHz9OeKTgGFUHgJcIUizN1o1siZWps6CsoBGbZEFMD5GD\r\nF//FhTJC3YtDevH8foWd2IfH1KbArk/7CA51/TMk5AHzJaF2ccjBurjKU3/U\r\nStW6GLm2s8rEPLfkwQETWeOZUnB896yaftLizZ1KZqSkfXw/IejViIek0OC4\r\nWPjIllE4LzLHA3IraJ+uodhHE0G8KrIVOYx+r74aYkfgknQGLZz9i7jqqn0q\r\ng7px05hUfVn+5NrwmVV3vFSBqz+RNmRh2OA=\r\n=sPUA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.8-beta.0_1658998070905_0.017431203624715064"},"_hasShrinkwrap":false},"1.1.8":{"name":"@uni/request","version":"1.1.8","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":"./es/index.js"},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.8","_nodeVersion":"14.20.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-G6dJ29UjZc+Vnc3W/WPmEARsLCYPWycr+oHyYrFMeJEWZkKfK96z+wh0GUW90wodR7PuuXcYqMalIrj+9Tl46Q==","shasum":"c122f63b4ca18eccc0749b2c76694db55d8d5b00","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.8.tgz","fileCount":58,"unpackedSize":211890,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXtRWsTuj9IFw9SZfJlP96Ctrsb56fyl7w5phCy2Fi1gIgeGT027fjvDOoMCdJtFpaswA3+01nsp1E/rlTl4A912s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGF5sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOAA/+KmG+ZtTZTEh+VT1qtHcANZ+WwgHCnNwm2FZ8Ofb8Wc55xcaz\r\nnONUNqWR+Eoc0QLHKP8Yfq+7EE+AcYJgwJM96aIwYWIGyfOOOfnToUGTjCG8\r\nbdbwlczAV8ols/wiYpH+6g8bo6tc6LBtP9zHu26t/nJ+uAUTFt9IUWd3TCqB\r\nVdvqS23iPhnyiippfsyHYL3QT5xfsYi0Pk8YoxzFJsPi0uZpvgYmcASsgJSd\r\nJa9/GM4Va93EXKRoGYrZwOZ8A0F1GDomy9KqpoiRU0Qts8xmQ34oDYYkdku5\r\nXmqWrJd8/sHCOXwVp+2Vk8u3Ich+hl0BS10/V11Um3yQPb/1tGieNiRIU6Ee\r\nuNDMoG2pnMFhYOEUO/i1YHa2MZK8e+brgYl+dd1bfI2ZIUeVh5UpbARBIboT\r\nbzS8COcloL0/K9mrLBZtTn/O0JRXa+WH6s4d49OtmeIrb1tZF3OrRHxDLJ+/\r\nIXLevIMLAMRB0qXUi+E0YrZbhfegBHHWjAWmWpdkIf1KljOYaTKVu3SyNHkx\r\nZhtjyBnNGhVYjnC1thEMtEEwID3fuLuGLb3+R0kRBBd6Miuzca5hmRJc259X\r\nJzEMmHpUYKZsZDguunWLfMpugCNcuA+qa8YANxomhbpLMbnvfy2FRYjTY8KY\r\nKe2ujvsbx0F9nHifHPyGLAoWbG8EIE5cDOI=\r\n=60aB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"2leg@immaster.cn"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.8_1662541419846_0.4133217079878706"},"_hasShrinkwrap":false},"1.1.9":{"name":"@uni/request","version":"1.1.9","description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","main":"lib/index.js","module":"es/index.js","unpkg":"dist/index.js","typings":"types/index.d.ts","sideEffects":false,"exports":{".":{"web":"./es/web/index.js","wechat-miniprogram":"./es/wechat-miniprogram/index.js","bytedance-microapp":"./es/bytedance-microapp/index.js","miniapp":"./es/ali-miniapp/index.js","baidu-smartprogram":"./es/baidu-smartprogram/index.js","kuaishou-miniprogram":"./es/kuaishou-miniprogram/index.js","default":{"require":"./lib/index.js","import":"./es/index.js","default":"./es/index.js"}},"./*":"./*"},"dependencies":{"@uni/env":"^1.0.0"},"repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"license":"BSD-3-Clause","author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"homepage":"https://github.com/raxjs/universal-api#readme","_id":"@uni/request@1.1.9","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-zZTU6QKx2mWVlk22WlanJvm1VOZRIq0wpedSBbJsuDqPKFKYGu/rEHVuxLQw1eLGjJHth+dU/u/SOhuF7vwlzw==","shasum":"6b6aedaee2304b02c896e95c5819fbde5d09852d","tarball":"https://registry.npmjs.org/@uni/request/-/request-1.1.9.tgz","fileCount":58,"unpackedSize":213095,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFf7irgNeQpobpiOyo6xrMm4elt/Rwa21FC/iML7Djc7AiAPPAzgc/QE0HIhtBqjR4KVyiicglxEs1GYDgXYdzKrcA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSLdEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkbQ/+PI8bMCxCNfYrSz/lajtYLBffPjvwEVu4lIQ7oAVPWuJDav7v\r\n4nc/iLLBGDKV2kifxBt6Sm7hx3fj3NzKsKjUSEFTtxCNzQOLARfPwp7tWsGw\r\nOqMxRkPrUnGlAVvZ3ATjnTKaAzayRVYw/CipqCGYU16Sg6LmhOAivBtHqdYV\r\n33QSU4P2kwkcLs3IJMIbFiru51w/KqJk+lCvsg6c1aG6NQSqLDBENLGAz7/Q\r\nFTbArnCwl/HSpaiEvuWnE3FV/oGOEb84IHqUhQ9p2cTLAoW3VZja14IEGnWf\r\nfGNm+4BkuXl+TIXjv8ncIbuNMbo78SpMfz3AromOBNWBo3VtB1zzuECFhQTv\r\nDyMAZVfGzijUTXwkLxo8HVolp7a+nboLDHlHNxaq+j2nUmds+8YF9KcGf5wu\r\nBO0pZ0o4sffpiIWN5LhoeDx+EZduk7Dq6Gn9xMAMWNW/f4PsDvZI9mmNGpBz\r\nl32wtSuU2tZmD8Q6Qimj7mzSSIBoxCMc8uiMDEATrCG9rLOzZ97mJ1ck6Opz\r\nMAPEQCWvDNy8GHb7XZjcziz5fVKkhK+uQb1eLStD+N7LhDTb3buVMnABy+Cp\r\n7VHAqpSczY5Mi8IGyCBhBtJpAr4IpFHe80v/zbLqKHaCQEzMTgRpzkQnFc6m\r\nkZDW1w3QoT+/SZl5qcRzEgVbUoemeYQ6I3w=\r\n=HM7v\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"bunko","email":"gh@ian7.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/request_1.1.9_1682487107890_0.07108448954260482"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-26T09:13:40.397Z","1.0.0-beta":"2021-02-26T09:13:40.783Z","modified":"2023-04-26T05:31:48.247Z","1.0.0-beta1":"2021-02-26T12:55:21.134Z","1.0.0":"2021-03-04T12:07:45.601Z","1.0.1":"2021-03-12T11:55:38.690Z","1.0.2":"2021-04-14T07:36:48.807Z","1.0.3":"2021-04-22T07:55:47.822Z","1.0.4":"2021-04-26T06:40:23.137Z","1.0.5":"2021-04-28T07:08:52.800Z","1.0.6-beta":"2021-05-19T07:53:36.436Z","1.0.6":"2021-05-25T08:45:49.274Z","1.0.7-beta":"2021-05-26T10:34:44.704Z","1.0.7":"2021-06-01T03:30:02.879Z","1.0.8-beta":"2021-06-15T09:03:12.520Z","1.0.8":"2021-06-16T03:11:06.008Z","1.0.9-beta":"2021-06-16T07:54:20.382Z","1.0.9":"2021-06-16T08:51:11.453Z","1.0.10-beta":"2021-06-21T09:46:00.088Z","1.0.10":"2021-06-22T06:25:00.919Z","1.0.11":"2021-07-06T08:37:49.200Z","1.1.0":"2021-08-12T06:05:06.779Z","1.1.1":"2021-08-24T03:11:10.319Z","1.1.2":"2021-10-09T02:53:42.119Z","1.1.3-beta":"2021-10-12T05:07:47.079Z","1.1.3":"2021-10-12T07:51:13.056Z","1.1.4-beta":"2021-10-18T08:22:24.489Z","1.1.4":"2021-10-18T08:58:15.339Z","1.1.5-beta":"2021-10-19T08:33:53.288Z","1.1.5":"2021-10-19T08:49:07.315Z","1.1.6-beta":"2021-10-20T08:30:38.779Z","1.1.6":"2021-11-04T07:44:08.609Z","1.1.7":"2021-12-01T05:53:31.501Z","1.1.8-beta.0":"2022-07-28T08:47:51.083Z","1.1.8":"2022-09-07T09:03:40.099Z","1.1.9":"2023-04-26T05:31:48.083Z"},"maintainers":[{"name":"bunko","email":"gh@ian7.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"description":"[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)","homepage":"https://github.com/raxjs/universal-api#readme","repository":{"type":"git","url":"git+ssh://git@github.com/raxjs/universal-api.git"},"author":{"name":"rax"},"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"license":"BSD-3-Clause","readme":"# request \n\n[![npm](https://img.shields.io/npm/v/@uni/request.svg)](https://www.npmjs.com/package/@uni/request)\n\n\nUsed to initiate a network request\nNote: This API does not support promise calls\n\n<div style=\"display: flex;flex-direction: row;justify-content: space-between;\">\n<div style=\"margin-right: 20px;max-width: 50%;\">\n\n## Supported\n\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"h5\" /> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\" /> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"ali miniprogram\" /> <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"baiduSmartProgram\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"KuaiShouMiniProgram\" />\n\n## Install\n\n```bash\n$ npm install @uni/request --save\n```\nor\n```bash\n$ npm install @uni/apis --save\n```\n## Usage\n\n```javascript\nimport { request } from '@uni/apis';\n\nrequest({\n  url: 'https://alibaba.github.io/rax/',\n  method: 'POST',\n  data: {\n    from: 'Rax',\n  },\n  dataType: 'json',\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n\nrequest({\n  url: 'http://suggest.taobao.com/sug',\n  method: 'JSONP',\n  data: {\n    code: 'utf-8',\n    q: '卫衣'\n  },\n  jsonpCallback: 'cb',\n  jsonpCallbackProp: 'callback',\n  timeout: 5000,\n  success: (res) => {\n    console.log('success', res);\n  },\n  fail: (res) => {\n    console.log('fail', res);\n  },\n  complete: (res) => {\n    console.log('complete', res);\n  }\n});\n```\n\nYou can also import from the big package:\n```javascript\nimport { request } from '@uni/apis';\n```\n\n## Arguments\n\n| Property | Type | Description | Required | Default |\n| --- | --- | --- | --- | --- |\n| options | `object`  |  | true | - |\n| options.url | `string`  | Required，the request url | true | - |\n| options.headers | `object`  | The request headers | false | {<br />  'Content-Type': 'application/json'<br />} |\n| options.method | `string`  | Values：GET/POST/PUT/DELETE/PATCH/HEAD/JSONP,mini app only support GET/POST/JSONP | false | `GET`  |\n| options.data | `object`  | <br />- GET or POST set headers['content-Type'] is equal to `application/x-www-form-urlencoded` data will apply to URL<br />- In other cases, the data will be converted to a JSON string as request body to the server.<br /> | false | - |\n| options.timeout | `number`  | timeout | false| 20000 (ms) |\n| options.dataType | `string`  | Set return data type, `json` or `text`, If the conversion fails, returns as it is | false | `json`  |\n| options.jsonpCallback | `string`  | The callback method name of jsonp, which only takes effect when method is JSONP | false | `__uni_jsonp_handler`  |\n| options.jsonpCallbackProp | `string`  | The name of the callback attribute of jsonp, which only takes effect when the method is JSONP | 否 | `callback`  |\n| options.success | `Function`  | The callback function for a successful API call | false | - |\n| options.fail | `Function`  | The callback function for a failed API call | false | - |\n| options.complete | `Function`  | The callback function used when the API call completed (always executed whether the call succeeds or fails) | 否 | - |\n\n### Non-universal parameters (due to destroying the ability of one code and multiple terminals, it is not recommended to use)\n| Property   | Type     | Default | Required | Description | Supported  |\n| ------ | -------- | ------ | ---- | ----- | ------- |\n| responseType | `string` | text  | x    | 响应的数据类型 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> <img alt=\"bytedanceMicroApp\" src=\"https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"bytedanceMicroApp\" /> <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> <img alt=\"kuaiShouMiniProgram\" src=\"https://gw.alicdn.com/imgextra/i4/O1CN01kzmJMM24jcFEzp5Wv_!!6000000007427-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"快手小程序\" /> |\n| enableHttp2 | `boolean` |  false  | x    | 开启 http2 | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableQuic | `boolean` |  false  | x    | 开启 quic | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| enableCache | `boolean` |  false  | x    | 开启 cache | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| cloudCache | `object/boolean` |  false  | x    | 开启云加速 | <img alt=\"baiduSmartProgram\" src=\"https://img.alicdn.com/imgextra/i4/O1CN01jngdBb24yGv2Fu34G_!!6000000007459-2-tps-200-200.png\" width=\"25px\" height=\"25px\" title=\"百度小程序\" /> |\n\n### Success return：`Response`\n\n| Property | Type | Description |\n| --- | --- | --- |\n| response | `object` | - |\n| response.data | `string`  | The data returned by the request is converted according to the type declared in the dataType. If the conversion fails, it is returned as it is |\n| response.headers | `object`  | Response headers |\n| response.status | `number`  | Response status |\n\n### Non-universal return parameters (due to the destruction of the ability of one code, it is not recommended to use)\n| Property   | Type     | Description | Supported  |\n| ------ | -------- | ----- | ------- |\n| cookies | `Array.<string>` | The cookies returned by the developer server, in the format of a string array | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n| profile | `Object` | Some debugging information during the network request | <img alt=\"wechatMiniprogram\" src=\"https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg\" width=\"25px\" height=\"25px\" title=\"wechatMiniprogram\" /> |\n\n### Fail return：\n\n| Property | Type | Description |\n| --- | --- | --- |\n| error | `object` | - |\n| error.code | `number`  | Error code |\n| error.message | `string`  | Error message |\n\n### RequestTask\nRequest task object\n#### Function\nRequestTask.abort()\nInterrupt request task\n\n##### Not a universal method (due to the destruction of the ability of one code, it is not recommended to use)\n**Only WeChat supports the following methods**\nRequestTask.onHeadersReceived(function callback)\nListen to the HTTP Response Header event. Will be completed earlier than the requested completion event\n\nRequestTask.offHeadersReceived(function callback)\nCancel listening for HTTP Response Header event\n\n</div>\n<div>\n\n\n\n<div style=\"display: flex;margin-top: 50px;\">\n  <div>\n    <img src=\"https://img.alicdn.com/imgextra/i1/O1CN01Ky8HXS23ytpewgaAV_!!6000000007325-0-tps-688-630.jpg\" width=\"220\" height=\"200\" />\n    <div style=\"text-align: center;\">wechat miniprogram</div>\n  </div>\n</div>\n\n</div>\n</div>\n","readmeFilename":"README.en-US.md"}