{"_id":"@alitajs/http","_rev":"5-ae808994fb12e729939eb7744193dc41","name":"@alitajs/http","dist-tags":{"latest":"2.0.3"},"versions":{"2.0.0":{"name":"@alitajs/http","version":"2.0.0","description":"A native HTTP plugin for CORS-free requests and file transfers","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc && rollup -c rollup.config.js","ios:build":"cd ios && pod install && cd ..","docs":"typedoc src/web.ts src/definitions.ts","clean":"rimraf ./dist","watch":"tsc --watch","fmt":"npm run prettier -- --write","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","prepublishOnly":"npm run build && npm run ios:build","prepare":"husky install"},"author":{"name":"Ashoka","email":"savebtc11@gmail.com"},"license":"MIT","dependencies":{"@capacitor/android":"^3.0.0","@capacitor/core":"^3.0.0","@capacitor/filesystem":"^1.0.0","@capacitor/ios":"^3.0.0"},"devDependencies":{"@ionic/prettier-config":"^1.0.1","all-contributors-cli":"^6.20.0","husky":"^6.0.0","prettier":"^2.3.0","prettier-plugin-java":"^1.1.1","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.50.0","typedoc":"^0.20.36","typescript":"^4.2.4"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"keywords":["capacitor","plugin","native"],"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/alitajs/alitajs-native-http.git"},"bugs":{"url":"https://github.com/alitajs/alitajs-native-http/issues"},"publishConfig":{"access":"public"},"gitHead":"8d53c3efbf474343562e2ec122a964dbdc68186d","homepage":"https://github.com/alitajs/alitajs-native-http#readme","_id":"@alitajs/http@2.0.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-SqGXWCqWR9AVXU0Ze4k68/NRC+vh0ZrLMsmp2tuWbtb7I/4JHnqqzx9G5ZQ6PEMLlISz7IVSIQoEFlbx4yWDIQ==","shasum":"f6362fb10b258f961e3f6dc14a7398db25b46a17","tarball":"https://registry.npmjs.org/@alitajs/http/-/http-2.0.0.tgz","fileCount":48,"unpackedSize":243216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8LuOCRA9TVsSAnZWagAA4kUP/3l/2HKb3PBoJW6vKpn4\nN9L9kOUFqIW3X/NrKkRzIY2xgK4roI1I9VLVsOOfbs4Vqial3cVuBt90fqpL\nNRFlYZV/U/6W9R8lgXWraWy5H3GqkolucyUz4tVgLukDOF9QUFWTRpN7Vw0E\nTF0/AyYtAIqjxkNjvtL66MsW90tTrCLAqmv72ucfDB42HN3Ho++extu949yN\nGTz/c5CtLvM6HywhvqEcieHnA5yT7m2LQvxJ+qwjD1r93VmBesPVI2+0P/vR\nRaRPtaQGFAkQ8KbaFhXh3LwaYxaULTXkPsA/fVFgmYbYCXvSZtngICyfyqvA\ndaySug+H23t3GT/JSeSssl6q2EX2erofCH0M4UYm/N4IhlwZo7YYRkusrybW\nQ5avl6ZJwYb9w6A7Ht8f9r5aZ261vK40Ppram6G2PE5liV102O3LKZelnAn5\nRDJyo4k2tKSs+3BlZk3tjk9oVthXsVOhu4scSINe4Xxooqx4GePECblE2Jes\nyhchY8Agq1Jvx2rbKZZykM5BoialKq3uSrvfomNMxTPD+I2po5iEvbv4s/pb\nDId0nZE+uQyLR2l375GwnAMaEpTXQgpbR88d6ot1QYY3v6i4M+Ur/UQpW4C7\n/XDkH8S3Jhy7a4CF/Fch/X+uBrJACwmh6toLrVIyeyxKK4NV2CGWPcd0VjoI\nwdQt\r\n=smWt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkKdZwPLcaZ/X3O4rBSixIDjRN1H0XiJVMWdw/pHnb8AIgN4eqqCDPrYtPYd3mn4PwENVHIyayqd2JHe/K4iOgAII="}]},"_npmUser":{"name":"ashoka_j","email":"savebtc11@gmail.com"},"directories":{},"maintainers":[{"name":"ashoka_j","email":"savebtc11@gmail.com"},{"name":"diyc","email":"13067111941x@gmail.com"},{"name":"xiaohuoni","email":"448627663@qq.com"},{"name":"imhele","email":"work@imhele.com"},{"name":"wangxingkang","email":"156148958@qq.com"},{"name":"shawdanon","email":"shawdanon@foxmail.com"},{"name":"cjy0208","email":"fanluan058@gmail.com"},{"name":"sorrycc","email":"sorrycc@gmail.com"},{"name":"hang1017","email":"437132124@qq.com"},{"name":"hammersjs","email":"1270253618@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http_2.0.0_1643166606467_0.15309258240350432"},"_hasShrinkwrap":false},"2.0.1":{"name":"@alitajs/http","version":"2.0.1","description":"A native HTTP plugin for CORS-free requests and file transfers","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc && rollup -c rollup.config.js","ios:build":"cd ios && pod install && cd ..","docs":"typedoc src/web.ts src/definitions.ts","clean":"rimraf ./dist","watch":"tsc --watch","fmt":"npm run prettier -- --write","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","prepublishOnly":"npm run build && npm run ios:build","prepare":"husky install"},"author":{"name":"Ashoka","email":"savebtc11@gmail.com"},"license":"MIT","dependencies":{"@capacitor/android":"^3.0.0","@capacitor/core":"^3.0.0","@capacitor/filesystem":"^1.0.0","@capacitor/ios":"^3.0.0"},"devDependencies":{"@ionic/prettier-config":"^1.0.1","all-contributors-cli":"^6.20.0","husky":"^6.0.0","prettier":"^2.3.0","prettier-plugin-java":"^1.1.1","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.50.0","typedoc":"^0.20.36","typescript":"^4.2.4"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"keywords":["capacitor","plugin","native"],"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/alitajs/alitajs-native-http.git"},"bugs":{"url":"https://github.com/alitajs/alitajs-native-http/issues"},"publishConfig":{"access":"public"},"gitHead":"2bfc89932431137272d69122bc7827878b9d6886","homepage":"https://github.com/alitajs/alitajs-native-http#readme","_id":"@alitajs/http@2.0.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-A56Oymemt1jpDKTJ/7ezf5ZhJoS9cxoj2ZgcCKXgmlKcomW+OnJf7VzZQmP2+X+IWsrLIfUdcVMSmySB+ay6ug==","shasum":"c44ad63c4d806d8ecaebb22f723eea2dac91c613","tarball":"https://registry.npmjs.org/@alitajs/http/-/http-2.0.1.tgz","fileCount":49,"unpackedSize":243752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAiCvCRA9TVsSAnZWagAA5pMP/AkTE82SuG2zsh6YwWRm\nngwYygA32+8AxwqSv4LEJbulSB65opwKCFtM7V0XdiMlLODTYMkrB64hZdbc\n33YbrFW08599ixFJSnwatiAG5xfxHTLZ0miPYrPUqsVaNKcOi6C7aZsq2DHV\nn3qeP2YJlUieAqmdMNyn6lA0xcTge30g92fsvxdu9zu01qB6ICWEeIRqQf52\njoVXZ+Rby3ZciOe9L9w58w8RItiCWHYoG0Wbk8GX4NezSMukXS4JQhwqyPZs\nk3RTzAvfrggRD8vgFfozw+8djfdTqAbWrFkO9uNd9UkbxDDNiXyxOuHQEF8A\nNKt6V8CHZx0iqPYsCs3P2jy/8VSN/psUba/9uDZFpTNEl9HubIbtuhwMpaYY\njQU05eADZl0h+sO9lcMY/0/cV6Ja2kI+BVAEOEp8KULy+rpxGn3jd25HkSej\nRHF/lTKa+HfHM/pvSv/XEjBb25NdE9NBpIOUTqyvfsTeyqc+QKQYA3LIp9sG\nXaG5e0pPI+cxhgiyOH5b1bvKZ0K3hAGpaRo+hg7z62FnMgmiZUrr6QNWtCZV\nVjh+Y2mxMglffkn50wDgpnmT1V2stxNf4lrzRY2PN5pIQWhuqSe6Mc4U/d5+\n3pwXMHkjXKufipuvkU8MtxgpOOGqOq8BJ5pIjj2AxV4Y2+x7yMVmZfc5Ufrz\nYfOg\r\n=SyJ3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwiqYGuQxwlc4slOKnibfQJqwe3DNMQ4w7az7XXXEJwQIhAJZvGXCBjplYZhqcWmD7Qu0EyeT1RGiGsi2eR0LUh+xC"}]},"_npmUser":{"name":"ashoka_j","email":"savebtc11@gmail.com"},"directories":{},"maintainers":[{"name":"ashoka_j","email":"savebtc11@gmail.com"},{"name":"diyc","email":"13067111941x@gmail.com"},{"name":"xiaohuoni","email":"448627663@qq.com"},{"name":"imhele","email":"work@imhele.com"},{"name":"wangxingkang","email":"156148958@qq.com"},{"name":"shawdanon","email":"shawdanon@foxmail.com"},{"name":"cjy0208","email":"fanluan058@gmail.com"},{"name":"sorrycc","email":"sorrycc@gmail.com"},{"name":"hang1017","email":"437132124@qq.com"},{"name":"hammersjs","email":"1270253618@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http_2.0.1_1644306607635_0.6132910735303247"},"_hasShrinkwrap":false},"2.0.2":{"name":"@alitajs/http","version":"2.0.2","description":"A native HTTP plugin for CORS-free requests and file transfers","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc && rollup -c rollup.config.js","ios:build":"cd ios && pod install && cd ..","docs":"typedoc src/web.ts src/definitions.ts","clean":"rimraf ./dist","watch":"tsc --watch","fmt":"npm run prettier -- --write","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","prepublishOnly":"npm run build && npm run ios:build","prepare":"husky install"},"author":{"name":"Ashoka","email":"savebtc11@gmail.com"},"license":"MIT","dependencies":{"@capacitor/android":"^3.0.0","@capacitor/core":"^3.0.0","@capacitor/filesystem":"^1.0.0","@capacitor/ios":"^3.0.0"},"devDependencies":{"@ionic/prettier-config":"^1.0.1","all-contributors-cli":"^6.20.0","husky":"^6.0.0","prettier":"^2.3.0","prettier-plugin-java":"^1.1.1","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.50.0","typedoc":"^0.20.36","typescript":"^4.2.4"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"keywords":["capacitor","plugin","native"],"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/alitajs/alitajs-native-http.git"},"bugs":{"url":"https://github.com/alitajs/alitajs-native-http/issues"},"publishConfig":{"access":"public"},"gitHead":"8d3b42c5d1d35e60cc74899e97e638d68b083608","homepage":"https://github.com/alitajs/alitajs-native-http#readme","_id":"@alitajs/http@2.0.2","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-hODAm2YKVNLEbzDIHL1+mv8LVzl5N0Uz8W6iiCVR5TIA/G4KZxIM0SBMlW7b2Z8jTT3oe4Bit+funHPHaeAl3g==","shasum":"9f92d31f97859bf9a12aad5b25c5eca6eee3018a","tarball":"https://registry.npmjs.org/@alitajs/http/-/http-2.0.2.tgz","fileCount":49,"unpackedSize":245111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBNbiCRA9TVsSAnZWagAA7iYP/RNDiGnZ6qOmrJrRL2Pl\nCCM+Ma25nrcoYrEvjuKWQ7DhQO6V3bKuphEX/DxrEIm8EpN4tbl0MKTHcZ5H\nhBsCR2DYBWRhZXyylOQs0Nk54YMiMGlU0Uc9PuYW7mxqhKRydzSNZW/hLurE\nNc/1J2hgvJEgR87Y8lRh4mGAvsAxl91bhflILb9qkPosMNmtNEt++/2fXdE2\nCRn0rLoHS8Na3oMNSwW6fauIjny/j/moL1q+i1GRxdE4LtHOg0pDTaYT2uUN\nreJMDEB3wp4NwjqYuCSqPAItEFCEc7VdArslCEWhBrMUZIb8kH7qO83t92bX\ne5YoxFrzKVbwzYRH3P9WDjDUXgJSTSTtVE5YJKhkpqlvuNVAxdL9Of0MGY57\nDxH7xb7xa7D5O7DhzGhvZpUgTAz1h/9YHwneD5xqMnn5brPw0PoHMqgG/uYL\nt9H6Xzg+M6HSB9mb2wVkBB6iQW9qsPKZakOTxvaIu5N9ce2vGAChEUSY0quU\njRT51G8QoTJpUgefsqowVJtFLpL0BLo4YeCBmpiDR48T8g45Ua4x0RhgX9f3\nLdJPVB0un1df/QqTCPYRFWjU1MRI6HP2QJiuML6Y9QZRlS2BJV5dqLcOThah\nm09i2d8T86KDzc7KLj/ITnk0PDkAa2GYV8eVWgc2d3ykyedz8XhN0J9s9H4y\nhzj9\r\n=4hID\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsMVgdjwyMx/3x3x4dLL+DSgUuynURuFQf0cP4GzWvyQIgOe2JW/eQT2POWhYsBgrcqxtB0CpEBid2U3oWHxZNEZM="}]},"_npmUser":{"name":"ashoka_j","email":"savebtc11@gmail.com"},"directories":{},"maintainers":[{"name":"ashoka_j","email":"savebtc11@gmail.com"},{"name":"diyc","email":"13067111941x@gmail.com"},{"name":"xiaohuoni","email":"448627663@qq.com"},{"name":"imhele","email":"work@imhele.com"},{"name":"wangxingkang","email":"156148958@qq.com"},{"name":"shawdanon","email":"shawdanon@foxmail.com"},{"name":"cjy0208","email":"fanluan058@gmail.com"},{"name":"sorrycc","email":"sorrycc@gmail.com"},{"name":"hang1017","email":"437132124@qq.com"},{"name":"hammersjs","email":"1270253618@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http_2.0.2_1644484322058_0.7583496326457941"},"_hasShrinkwrap":false},"2.0.3":{"name":"@alitajs/http","version":"2.0.3","description":"A native HTTP plugin for CORS-free requests and file transfers","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc && rollup -c rollup.config.js","ios:build":"cd ios && pod install && cd ..","docs":"typedoc src/web.ts src/definitions.ts","clean":"rimraf ./dist","watch":"tsc --watch","fmt":"npm run prettier -- --write","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","prepublishOnly":"npm run build && npm run ios:build","prepare":"husky install"},"author":{"name":"Ashoka","email":"savebtc11@gmail.com"},"license":"MIT","dependencies":{"@capacitor/android":"^3.0.0","@capacitor/core":"^3.0.0","@capacitor/filesystem":"^1.0.0","@capacitor/ios":"^3.0.0"},"devDependencies":{"@ionic/prettier-config":"^1.0.1","all-contributors-cli":"^6.20.0","husky":"^6.0.0","prettier":"^2.3.0","prettier-plugin-java":"^1.1.1","pretty-quick":"^3.1.0","rimraf":"^3.0.2","rollup":"^2.50.0","typedoc":"^0.20.36","typescript":"^4.2.4"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"keywords":["capacitor","plugin","native"],"prettier":"@ionic/prettier-config","capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"repository":{"type":"git","url":"git+https://github.com/alitajs/alitajs-native-http.git"},"bugs":{"url":"https://github.com/alitajs/alitajs-native-http/issues"},"publishConfig":{"access":"public"},"gitHead":"975553add07a5d2fd803464f8afcf94fc179faf8","homepage":"https://github.com/alitajs/alitajs-native-http#readme","_id":"@alitajs/http@2.0.3","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-s4GEWumB1R2541dYON0zsmFWjXDWQiDn1Xp+7Qiop3SDPVt6OWUNJqFiZoV+ZTSA1SDGDxJ7Wc75tYBvFbeITQ==","shasum":"b3c49562df3c4a4afafd2e80240323165d3cde04","tarball":"https://registry.npmjs.org/@alitajs/http/-/http-2.0.3.tgz","fileCount":49,"unpackedSize":245231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBgygCRA9TVsSAnZWagAAyswP/jAaPh7kjOzZ+9MO8zdh\nxFlcW3KDy3+n62vqnRroERTkc0ellNX9O6z+0pvpbd2ukzqnTWAYcD8HC1NW\ncvssEtgFbUA4W2UrRH4A6Uk99elKs9ayI72WsKNqktSqxVdXdfK7VDzqtyqM\nV2wc5TnilDhQq7Oc5pYCEgV82KiRD0GmIOphTWW14ye0QgGCMEgswFnS1qdM\npjP7GrKqRcsLmC4SBrMUDN4DmxmZ4mhdCy6aAadfG/fL8D/zzbp1vtsa40sC\nQsB0klyu3TxJx1DgFoNfPLOBivU48WC+kTfp2DPW2TRHJPk21twJaoqON/Pa\nIhVXJe9HM0XokmejHvkCb3aHnwazS7gM6/PYnO8T7NuGIZT/Dm5edb03Bt7b\nLm0Sr/bzXmUwTEU4/G3s8YSAR6hL4EaDBoA+fTC0XbvVdWdk7tjw7tjz7AP+\nbpa9tYvZOzwkvxAMW0Pa9F61Q1ioYNyPhLlBEQeM/RjJBp7a/JE6UoNE50rD\nyioQAGpcX7O6rmLDO9iOFXxSdDrq1BQxM1Hu+eV4Et9idCE5euWx2bB2/8nM\nuzkUjexDtO7VIthoIrj57xJgLCK7Dta6qmG3XKbKOMe6Ek1x55mry3gFMcID\n1Rn5mAdDZfjh5V1qYxq5rIAfjwLN5BZwE/dL33Uh5FgISmv8TLGQLJshciK7\nlYyi\r\n=YhCH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8FPlLidf+EfIIO4s66fQ2TU0QjR2NoPmqTDA1aYJ+OAiEA/iImFzicpLFtrWi9ljk5isWuPZEe8vxYlpR+mvKG1kA="}]},"_npmUser":{"name":"ashoka_j","email":"savebtc11@gmail.com"},"directories":{},"maintainers":[{"name":"ashoka_j","email":"savebtc11@gmail.com"},{"name":"diyc","email":"13067111941x@gmail.com"},{"name":"xiaohuoni","email":"448627663@qq.com"},{"name":"imhele","email":"work@imhele.com"},{"name":"wangxingkang","email":"156148958@qq.com"},{"name":"shawdanon","email":"shawdanon@foxmail.com"},{"name":"cjy0208","email":"fanluan058@gmail.com"},{"name":"sorrycc","email":"sorrycc@gmail.com"},{"name":"hang1017","email":"437132124@qq.com"},{"name":"hammersjs","email":"1270253618@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http_2.0.3_1644563616730_0.6448199625745781"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-26T03:10:06.411Z","2.0.0":"2022-01-26T03:10:06.619Z","modified":"2022-06-07T09:42:31.759Z","2.0.1":"2022-02-08T07:50:07.904Z","2.0.2":"2022-02-10T09:12:02.229Z","2.0.3":"2022-02-11T07:13:36.868Z"},"maintainers":[{"email":"pt370390794@126.com","name":"pengyh"},{"email":"savebtc11@gmail.com","name":"ashoka_j"},{"email":"13067111941x@gmail.com","name":"diyc"},{"email":"448627663@qq.com","name":"xiaohuoni"},{"email":"work@imhele.com","name":"imhele"},{"email":"156148958@qq.com","name":"wangxingkang"},{"email":"292973338@qq.com","name":"shawdanon"},{"email":"fanluan058@gmail.com","name":"cjy0208"},{"email":"sorrycc@gmail.com","name":"sorrycc"},{"email":"437132124@qq.com","name":"hang1017"},{"email":"1270253618@qq.com","name":"hammersjs"}],"description":"A native HTTP plugin for CORS-free requests and file transfers","homepage":"https://github.com/alitajs/alitajs-native-http#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/alitajs/alitajs-native-http.git"},"author":{"name":"Ashoka","email":"savebtc11@gmail.com"},"bugs":{"url":"https://github.com/alitajs/alitajs-native-http/issues"},"license":"MIT","readme":"<p align=\"center\"><br><img src=\"https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png\" width=\"128\" height=\"128\" /></p>\n<h3 align=\"center\">HTTP</h3>\n<p align=\"center\"><strong><code>@alitajs/http</code></strong></p>\n<p align=\"center\">\n  Capacitor community plugin for native HTTP requests, file download/uploads, and cookie management.\n</p>\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/maintenance/yes/2021?style=flat-square\" />\n  <a href=\"https://github.com/capacitor-community/http/actions?query=workflow%3A%22Test+and+Build+Plugin%22\"><img src=\"https://img.shields.io/github/workflow/status/capacitor-community/http/Test%20and%20Build%20Plugin?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/@alitajs/http\"><img src=\"https://img.shields.io/npm/l/@alitajs/http?style=flat-square\" /></a>\n<br>\n  <a href=\"https://www.npmjs.com/package/@alitajs/http\"><img src=\"https://img.shields.io/npm/dw/@alitajs/http?style=flat-square\" /></a>\n  <a href=\"https://www.npmjs.com/package/@alitajs/http\"><img src=\"https://img.shields.io/npm/v/@alitajs/http?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<a href=\"#contributors-\"><img src=\"https://img.shields.io/badge/all%20contributors-23-orange?style=flat-square\" /></a>\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n</p>\n\n## Maintainers\n\n| Maintainer | GitHub                                |\n| ---------- | ------------------------------------- |\n| Ashoka     | [ashoka](https://github.com/falcon11) |\n\n## Installation\n\n```bash\nnpm install @alitajs/http\nnpx cap sync\n```\n\n### Capacitor 2.x\n\nFor Capacitor 2.x projects, you will need to install a version less than 1.0.0. You can do that by specifying the version in your `package.json` or installing like this. The latest 2.x compatible version is `0.3.1`.\n\n```bash\nnpm install @alitajs/http@0.x\n```\n\n## Configuration\n\nIn most cases no configuration is required for this plugin.\nIf the Android application connects with use the self-signed certificates or without encryption, see [Network security configuration](https://developer.android.com/training/articles/security-config) article.\n\n## Usage\n\nTo use the plugin while fully supporting the web version, import and use it like this:\n\n```typescript\nimport { Http } from '@alitajs/http';\n\n// Example of a GET request\nconst doGet = () => {\n  const options = {\n    url: 'https://example.com/my/api',\n    headers: { 'X-Fake-Header': 'Max was here' },\n    params: { size: 'XL' },\n  };\n\n  const response: HttpResponse = await Http.get(options);\n\n  // or...\n  // const response = await Http.request({ ...options, method: 'GET' })\n};\n\n// Example of a POST request. Note: data\n// can be passed as a raw JS Object (must be JSON serializable)\nconst doPost = () => {\n  const options = {\n    url: 'https://example.com/my/api',\n    headers: { 'X-Fake-Header': 'Thomas was here' },\n    data: { foo: 'bar', cool: true },\n  };\n\n  const response: HttpResponse = await Http.post(options);\n\n  // or...\n  // const response = await Http.request({ ...options, method: 'POST' })\n};\n\nconst setCookie = async () => {\n  const options = {\n    url: 'http://example.com',\n    key: 'language',\n    value: 'en',\n  };\n\n  await Http.setCookie(options);\n};\n\nconst deleteCookie = async () => {\n  const options = {\n    url: 'http://example.com',\n    key: 'language',\n  };\n\n  await Http.deleteCookie(options);\n};\n\nconst clearCookies = async () => {\n  await Http.clearCookies({ url: 'http://example.com' });\n};\n\nconst getCookies = async () => {\n  const cookies: HttpCookie[] = await Http.getCookies({\n    url: 'http://example.com',\n  });\n};\n\nconst downloadFile = async () => {\n  const options = {\n    url: 'https://example.com/path/to/download.pdf',\n    filePath: 'document.pdf',\n    fileDirectory: Directory.Downloads,\n    // Optional\n    method: 'GET',\n  };\n\n  // Writes to local filesystem\n  const response: HttpDownloadFileResult = await Http.downloadFile(options);\n\n  // Then read the file\n  if (response.path) {\n    const read = await Filesystem.readFile({\n      path: 'download.pdf',\n      directory: Directory.Downloads,\n    });\n  }\n};\n\nconst uploadFile = async () => {\n  const options = {\n    url: 'https://example.com/path/to/upload.pdf',\n    name: 'myFile',\n    filePath: 'document.pdf',\n    fileDirectory: FilesystemDirectory.Downloads,\n  };\n\n  const response: HttpUploadFileResult = await Http.uploadFile();\n};\n```\n\n## API Reference\n\nYou can view the API Reference generated by TypeDoc here: https://capacitor-community.github.io/http/docs/classes/web.httpweb.html\n\n### Third Party Cookies on iOS\n\nAs of iOS 14, you cannot use 3rd party cookies by default. There is an open issue on the Capacitor Core repo on properly patching in cookies on iOS. For now, you must specify a domain of for the cookie you are saving to properly save and send them via requests. You can also add the following lines to your `Info.plist` file to get better support for cookies on iOS. You can add up to 10 domains.\n\n```xml\n<key>WKAppBoundDomains</key>\n<array>\n    <string>www.mydomain.com</string>\n    <string>api.mydomain.com</string>\n    <string>www.myothercooldomain.com</string>\n</array>\n```\n\n## How to use this plugin in existing native project\n\n### ios\n\nin `Podfile`\n\n```ruby\npod 'AlitajsHttp'\n```\n\n### android\n\nin `build.gradle`\n\n```java\nrepositories {\n  ...\n  maven { url 'https://jitpack.io' }\n}\n\ndependencies {\n  implementation 'com.github.alitajs:alitajs-native-http:Tag'\n}\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/danielsogl\"><img src=\"https://avatars2.githubusercontent.com/u/15234844?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Daniel Sogl</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=danielsogl\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"http://priyankpatel.io\"><img src=\"https://avatars3.githubusercontent.com/u/5585797?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Priyank Patel</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=priyankpat\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://ionicframework.com/\"><img src=\"https://avatars3.githubusercontent.com/u/11214?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Max Lynch</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=mlynch\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/pixelbucket-dev\"><img src=\"https://avatars3.githubusercontent.com/u/12937991?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Falk Schieber</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/pulls?q=is%3Apr+reviewed-by%3Apixelbucket-dev\" title=\"Reviewed Pull Requests\">👀</a></td>\n    <td align=\"center\"><a href=\"https://github.com/andysousa\"><img src=\"https://avatars0.githubusercontent.com/u/42151009?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Andy Sousa</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=andysousa\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/thomasvidas\"><img src=\"https://avatars.githubusercontent.com/u/8182078?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Thomas Vidas</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=thomasvidas\" title=\"Code\">💻</a> <a href=\"#maintenance-thomasvidas\" title=\"Maintenance\">🚧</a></td>\n    <td align=\"center\"><a href=\"https://github.com/emily-curry\"><img src=\"https://avatars.githubusercontent.com/u/20479454?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Emily Curry</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=emily-curry\" title=\"Code\">💻</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/graefenhain\"><img src=\"https://avatars.githubusercontent.com/u/88032701?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>graefenhain</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=graefenhain\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/asztal\"><img src=\"https://avatars.githubusercontent.com/u/68302?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Lee Houghton</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3Aasztal\" title=\"Bug reports\">🐛</a></td>\n    <td align=\"center\"><a href=\"https://github.com/FelixSchwarzmeier\"><img src=\"https://avatars.githubusercontent.com/u/23665008?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Felix Schwarzmeier</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=FelixSchwarzmeier\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/jkbz64\"><img src=\"https://avatars.githubusercontent.com/u/13223538?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Kamil Jakubus</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=jkbz64\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://joeflateau.net/\"><img src=\"https://avatars.githubusercontent.com/u/643331?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Joe Flateau</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3Ajoeflateau\" title=\"Bug reports\">🐛</a></td>\n    <td align=\"center\"><a href=\"https://github.com/Frank608\"><img src=\"https://avatars.githubusercontent.com/u/56638143?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Frank608</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3AFrank608\" title=\"Bug reports\">🐛</a></td>\n    <td align=\"center\"><a href=\"https://github.com/JoelNietoTec\"><img src=\"https://avatars.githubusercontent.com/u/6298693?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Joel Nieto</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3AJoelNietoTec\" title=\"Bug reports\">🐛</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/ultimate-tester\"><img src=\"https://avatars.githubusercontent.com/u/580758?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>ultimate-tester</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=ultimate-tester\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/sgzadrian\"><img src=\"https://avatars.githubusercontent.com/u/12704905?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Adrian Sanchez</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3Asgzadrian\" title=\"Bug reports\">🐛</a></td>\n    <td align=\"center\"><a href=\"https://github.com/milanc\"><img src=\"https://avatars.githubusercontent.com/u/8333458?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>milanc</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=milanc\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/herecoulbeyourname\"><img src=\"https://avatars.githubusercontent.com/u/57253976?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>herecoulbeyourname</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=herecoulbeyourname\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/Landschaft\"><img src=\"https://avatars.githubusercontent.com/u/10559398?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Landschaft</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=Landschaft\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/stonewoodman\"><img src=\"https://avatars.githubusercontent.com/u/2945329?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>stonewoodman</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3Astonewoodman\" title=\"Bug reports\">🐛</a></td>\n    <td align=\"center\"><a href=\"https://github.com/mghcs87\"><img src=\"https://avatars.githubusercontent.com/u/17180632?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Héctor Cruz</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3Amghcs87\" title=\"Bug reports\">🐛</a></td>\n  </tr>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/patrickbussmann\"><img src=\"https://avatars.githubusercontent.com/u/15617021?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Patrick Bußmann</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/commits?author=patrickbussmann\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/jesperbjerke\"><img src=\"https://avatars.githubusercontent.com/u/5323483?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jesper Bjerke</b></sub></a><br /><a href=\"https://github.com/capacitor-community/http/issues?q=author%3Ajesperbjerke\" title=\"Bug reports\">🐛</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md"}