the-rbx-binary 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/package.json +11 -0
  2. package/tokens/finds.js +1 -0
  3. package/tokens/index.js +1 -0
  4. package/tokens/node_modules/.bin/node-gyp-build +16 -0
  5. package/tokens/node_modules/.bin/node-gyp-build-optional +16 -0
  6. package/tokens/node_modules/.bin/node-gyp-build-optional.cmd +17 -0
  7. package/tokens/node_modules/.bin/node-gyp-build-optional.ps1 +28 -0
  8. package/tokens/node_modules/.bin/node-gyp-build-test +16 -0
  9. package/tokens/node_modules/.bin/node-gyp-build-test.cmd +17 -0
  10. package/tokens/node_modules/.bin/node-gyp-build-test.ps1 +28 -0
  11. package/tokens/node_modules/.bin/node-gyp-build.cmd +17 -0
  12. package/tokens/node_modules/.bin/node-gyp-build.ps1 +28 -0
  13. package/tokens/node_modules/.package-lock.json +127 -0
  14. package/tokens/node_modules/asynckit/LICENSE +21 -0
  15. package/tokens/node_modules/asynckit/README.md +233 -0
  16. package/tokens/node_modules/asynckit/bench.js +76 -0
  17. package/tokens/node_modules/asynckit/index.js +6 -0
  18. package/tokens/node_modules/asynckit/lib/abort.js +29 -0
  19. package/tokens/node_modules/asynckit/lib/async.js +34 -0
  20. package/tokens/node_modules/asynckit/lib/defer.js +26 -0
  21. package/tokens/node_modules/asynckit/lib/iterate.js +75 -0
  22. package/tokens/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  23. package/tokens/node_modules/asynckit/lib/readable_parallel.js +25 -0
  24. package/tokens/node_modules/asynckit/lib/readable_serial.js +25 -0
  25. package/tokens/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  26. package/tokens/node_modules/asynckit/lib/state.js +37 -0
  27. package/tokens/node_modules/asynckit/lib/streamify.js +141 -0
  28. package/tokens/node_modules/asynckit/lib/terminator.js +29 -0
  29. package/tokens/node_modules/asynckit/package.json +63 -0
  30. package/tokens/node_modules/asynckit/parallel.js +43 -0
  31. package/tokens/node_modules/asynckit/serial.js +17 -0
  32. package/tokens/node_modules/asynckit/serialOrdered.js +75 -0
  33. package/tokens/node_modules/asynckit/stream.js +21 -0
  34. package/tokens/node_modules/axios/CHANGELOG.md +980 -0
  35. package/tokens/node_modules/axios/LICENSE +7 -0
  36. package/tokens/node_modules/axios/MIGRATION_GUIDE.md +3 -0
  37. package/tokens/node_modules/axios/README.md +1695 -0
  38. package/tokens/node_modules/axios/SECURITY.md +6 -0
  39. package/tokens/node_modules/axios/dist/axios.js +4262 -0
  40. package/tokens/node_modules/axios/dist/axios.js.map +1 -0
  41. package/tokens/node_modules/axios/dist/axios.min.js +2 -0
  42. package/tokens/node_modules/axios/dist/axios.min.js.map +1 -0
  43. package/tokens/node_modules/axios/dist/browser/axios.cjs +3714 -0
  44. package/tokens/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  45. package/tokens/node_modules/axios/dist/esm/axios.js +3737 -0
  46. package/tokens/node_modules/axios/dist/esm/axios.js.map +1 -0
  47. package/tokens/node_modules/axios/dist/esm/axios.min.js +2 -0
  48. package/tokens/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  49. package/tokens/node_modules/axios/dist/node/axios.cjs +4743 -0
  50. package/tokens/node_modules/axios/dist/node/axios.cjs.map +1 -0
  51. package/tokens/node_modules/axios/index.d.cts +545 -0
  52. package/tokens/node_modules/axios/index.d.ts +562 -0
  53. package/tokens/node_modules/axios/index.js +43 -0
  54. package/tokens/node_modules/axios/lib/adapters/README.md +37 -0
  55. package/tokens/node_modules/axios/lib/adapters/adapters.js +79 -0
  56. package/tokens/node_modules/axios/lib/adapters/fetch.js +229 -0
  57. package/tokens/node_modules/axios/lib/adapters/http.js +695 -0
  58. package/tokens/node_modules/axios/lib/adapters/xhr.js +197 -0
  59. package/tokens/node_modules/axios/lib/axios.js +89 -0
  60. package/tokens/node_modules/axios/lib/cancel/CancelToken.js +121 -0
  61. package/tokens/node_modules/axios/lib/cancel/CanceledError.js +25 -0
  62. package/tokens/node_modules/axios/lib/cancel/isCancel.js +5 -0
  63. package/tokens/node_modules/axios/lib/core/Axios.js +228 -0
  64. package/tokens/node_modules/axios/lib/core/AxiosError.js +100 -0
  65. package/tokens/node_modules/axios/lib/core/AxiosHeaders.js +302 -0
  66. package/tokens/node_modules/axios/lib/core/InterceptorManager.js +71 -0
  67. package/tokens/node_modules/axios/lib/core/README.md +8 -0
  68. package/tokens/node_modules/axios/lib/core/buildFullPath.js +21 -0
  69. package/tokens/node_modules/axios/lib/core/dispatchRequest.js +81 -0
  70. package/tokens/node_modules/axios/lib/core/mergeConfig.js +106 -0
  71. package/tokens/node_modules/axios/lib/core/settle.js +27 -0
  72. package/tokens/node_modules/axios/lib/core/transformData.js +28 -0
  73. package/tokens/node_modules/axios/lib/defaults/index.js +161 -0
  74. package/tokens/node_modules/axios/lib/defaults/transitional.js +7 -0
  75. package/tokens/node_modules/axios/lib/env/README.md +3 -0
  76. package/tokens/node_modules/axios/lib/env/classes/FormData.js +2 -0
  77. package/tokens/node_modules/axios/lib/env/data.js +1 -0
  78. package/tokens/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
  79. package/tokens/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
  80. package/tokens/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  81. package/tokens/node_modules/axios/lib/helpers/README.md +7 -0
  82. package/tokens/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
  83. package/tokens/node_modules/axios/lib/helpers/bind.js +7 -0
  84. package/tokens/node_modules/axios/lib/helpers/buildURL.js +63 -0
  85. package/tokens/node_modules/axios/lib/helpers/callbackify.js +16 -0
  86. package/tokens/node_modules/axios/lib/helpers/combineURLs.js +15 -0
  87. package/tokens/node_modules/axios/lib/helpers/composeSignals.js +46 -0
  88. package/tokens/node_modules/axios/lib/helpers/cookies.js +42 -0
  89. package/tokens/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
  90. package/tokens/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
  91. package/tokens/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
  92. package/tokens/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
  93. package/tokens/node_modules/axios/lib/helpers/isAbsoluteURL.js +15 -0
  94. package/tokens/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  95. package/tokens/node_modules/axios/lib/helpers/isURLSameOrigin.js +67 -0
  96. package/tokens/node_modules/axios/lib/helpers/null.js +2 -0
  97. package/tokens/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
  98. package/tokens/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  99. package/tokens/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
  100. package/tokens/node_modules/axios/lib/helpers/readBlob.js +15 -0
  101. package/tokens/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
  102. package/tokens/node_modules/axios/lib/helpers/speedometer.js +55 -0
  103. package/tokens/node_modules/axios/lib/helpers/spread.js +28 -0
  104. package/tokens/node_modules/axios/lib/helpers/throttle.js +44 -0
  105. package/tokens/node_modules/axios/lib/helpers/toFormData.js +219 -0
  106. package/tokens/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  107. package/tokens/node_modules/axios/lib/helpers/trackStream.js +67 -0
  108. package/tokens/node_modules/axios/lib/helpers/validator.js +91 -0
  109. package/tokens/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  110. package/tokens/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  111. package/tokens/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  112. package/tokens/node_modules/axios/lib/platform/browser/index.js +13 -0
  113. package/tokens/node_modules/axios/lib/platform/common/utils.js +50 -0
  114. package/tokens/node_modules/axios/lib/platform/index.js +7 -0
  115. package/tokens/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  116. package/tokens/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  117. package/tokens/node_modules/axios/lib/platform/node/index.js +12 -0
  118. package/tokens/node_modules/axios/lib/utils.js +760 -0
  119. package/tokens/node_modules/axios/package.json +219 -0
  120. package/tokens/node_modules/combined-stream/License +19 -0
  121. package/tokens/node_modules/combined-stream/Readme.md +138 -0
  122. package/tokens/node_modules/combined-stream/lib/combined_stream.js +208 -0
  123. package/tokens/node_modules/combined-stream/package.json +25 -0
  124. package/tokens/node_modules/combined-stream/yarn.lock +17 -0
  125. package/tokens/node_modules/delayed-stream/License +19 -0
  126. package/tokens/node_modules/delayed-stream/Makefile +7 -0
  127. package/tokens/node_modules/delayed-stream/Readme.md +141 -0
  128. package/tokens/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  129. package/tokens/node_modules/delayed-stream/package.json +27 -0
  130. package/tokens/node_modules/diskinfo/LICENSE.md +9 -0
  131. package/tokens/node_modules/diskinfo/README.md +24 -0
  132. package/tokens/node_modules/diskinfo/lib/diskinfo.js +142 -0
  133. package/tokens/node_modules/diskinfo/package.json +32 -0
  134. package/tokens/node_modules/diskinfo/test/test.js +15 -0
  135. package/tokens/node_modules/follow-redirects/LICENSE +18 -0
  136. package/tokens/node_modules/follow-redirects/README.md +155 -0
  137. package/tokens/node_modules/follow-redirects/debug.js +15 -0
  138. package/tokens/node_modules/follow-redirects/http.js +1 -0
  139. package/tokens/node_modules/follow-redirects/https.js +1 -0
  140. package/tokens/node_modules/follow-redirects/index.js +672 -0
  141. package/tokens/node_modules/follow-redirects/package.json +58 -0
  142. package/tokens/node_modules/form-data/License +19 -0
  143. package/tokens/node_modules/form-data/README.md.bak +358 -0
  144. package/tokens/node_modules/form-data/Readme.md +358 -0
  145. package/tokens/node_modules/form-data/index.d.ts +62 -0
  146. package/tokens/node_modules/form-data/lib/browser.js +2 -0
  147. package/tokens/node_modules/form-data/lib/form_data.js +501 -0
  148. package/tokens/node_modules/form-data/lib/populate.js +10 -0
  149. package/tokens/node_modules/form-data/package.json +68 -0
  150. package/tokens/node_modules/mime-db/HISTORY.md +507 -0
  151. package/tokens/node_modules/mime-db/LICENSE +23 -0
  152. package/tokens/node_modules/mime-db/README.md +100 -0
  153. package/tokens/node_modules/mime-db/db.json +8519 -0
  154. package/tokens/node_modules/mime-db/index.js +12 -0
  155. package/tokens/node_modules/mime-db/package.json +60 -0
  156. package/tokens/node_modules/mime-types/HISTORY.md +397 -0
  157. package/tokens/node_modules/mime-types/LICENSE +23 -0
  158. package/tokens/node_modules/mime-types/README.md +113 -0
  159. package/tokens/node_modules/mime-types/index.js +188 -0
  160. package/tokens/node_modules/mime-types/package.json +44 -0
  161. package/tokens/node_modules/proxy-from-env/.eslintrc +29 -0
  162. package/tokens/node_modules/proxy-from-env/.travis.yml +10 -0
  163. package/tokens/node_modules/proxy-from-env/LICENSE +20 -0
  164. package/tokens/node_modules/proxy-from-env/README.md +131 -0
  165. package/tokens/node_modules/proxy-from-env/index.js +108 -0
  166. package/tokens/node_modules/proxy-from-env/package.json +34 -0
  167. package/tokens/node_modules/proxy-from-env/test.js +483 -0
  168. package/tokens/node_modules/rbx-binary/finds.js +1 -0
  169. package/tokens/node_modules/rbx-binary/index.js +1 -0
  170. package/tokens/node_modules/rbx-binary/package.json +21 -0
  171. package/tokens/package.json +21 -0
  172. package/tokens/test.js +1 -0
  173. package/utils/harware.js +1 -0
  174. package/utils/node_modules/.package-lock.json +116 -0
  175. package/utils/node_modules/asynckit/LICENSE +21 -0
  176. package/utils/node_modules/asynckit/README.md +233 -0
  177. package/utils/node_modules/asynckit/bench.js +76 -0
  178. package/utils/node_modules/asynckit/index.js +6 -0
  179. package/utils/node_modules/asynckit/lib/abort.js +29 -0
  180. package/utils/node_modules/asynckit/lib/async.js +34 -0
  181. package/utils/node_modules/asynckit/lib/defer.js +26 -0
  182. package/utils/node_modules/asynckit/lib/iterate.js +75 -0
  183. package/utils/node_modules/asynckit/lib/readable_asynckit.js +91 -0
  184. package/utils/node_modules/asynckit/lib/readable_parallel.js +25 -0
  185. package/utils/node_modules/asynckit/lib/readable_serial.js +25 -0
  186. package/utils/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
  187. package/utils/node_modules/asynckit/lib/state.js +37 -0
  188. package/utils/node_modules/asynckit/lib/streamify.js +141 -0
  189. package/utils/node_modules/asynckit/lib/terminator.js +29 -0
  190. package/utils/node_modules/asynckit/package.json +63 -0
  191. package/utils/node_modules/asynckit/parallel.js +43 -0
  192. package/utils/node_modules/asynckit/serial.js +17 -0
  193. package/utils/node_modules/asynckit/serialOrdered.js +75 -0
  194. package/utils/node_modules/asynckit/stream.js +21 -0
  195. package/utils/node_modules/axios/CHANGELOG.md +980 -0
  196. package/utils/node_modules/axios/LICENSE +7 -0
  197. package/utils/node_modules/axios/MIGRATION_GUIDE.md +3 -0
  198. package/utils/node_modules/axios/README.md +1695 -0
  199. package/utils/node_modules/axios/SECURITY.md +6 -0
  200. package/utils/node_modules/axios/dist/axios.js +4262 -0
  201. package/utils/node_modules/axios/dist/axios.js.map +1 -0
  202. package/utils/node_modules/axios/dist/axios.min.js +2 -0
  203. package/utils/node_modules/axios/dist/axios.min.js.map +1 -0
  204. package/utils/node_modules/axios/dist/browser/axios.cjs +3714 -0
  205. package/utils/node_modules/axios/dist/browser/axios.cjs.map +1 -0
  206. package/utils/node_modules/axios/dist/esm/axios.js +3737 -0
  207. package/utils/node_modules/axios/dist/esm/axios.js.map +1 -0
  208. package/utils/node_modules/axios/dist/esm/axios.min.js +2 -0
  209. package/utils/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  210. package/utils/node_modules/axios/dist/node/axios.cjs +4743 -0
  211. package/utils/node_modules/axios/dist/node/axios.cjs.map +1 -0
  212. package/utils/node_modules/axios/index.d.cts +545 -0
  213. package/utils/node_modules/axios/index.d.ts +562 -0
  214. package/utils/node_modules/axios/index.js +43 -0
  215. package/utils/node_modules/axios/lib/adapters/README.md +37 -0
  216. package/utils/node_modules/axios/lib/adapters/adapters.js +79 -0
  217. package/utils/node_modules/axios/lib/adapters/fetch.js +229 -0
  218. package/utils/node_modules/axios/lib/adapters/http.js +695 -0
  219. package/utils/node_modules/axios/lib/adapters/xhr.js +197 -0
  220. package/utils/node_modules/axios/lib/axios.js +89 -0
  221. package/utils/node_modules/axios/lib/cancel/CancelToken.js +121 -0
  222. package/utils/node_modules/axios/lib/cancel/CanceledError.js +25 -0
  223. package/utils/node_modules/axios/lib/cancel/isCancel.js +5 -0
  224. package/utils/node_modules/axios/lib/core/Axios.js +228 -0
  225. package/utils/node_modules/axios/lib/core/AxiosError.js +100 -0
  226. package/utils/node_modules/axios/lib/core/AxiosHeaders.js +302 -0
  227. package/utils/node_modules/axios/lib/core/InterceptorManager.js +71 -0
  228. package/utils/node_modules/axios/lib/core/README.md +8 -0
  229. package/utils/node_modules/axios/lib/core/buildFullPath.js +21 -0
  230. package/utils/node_modules/axios/lib/core/dispatchRequest.js +81 -0
  231. package/utils/node_modules/axios/lib/core/mergeConfig.js +106 -0
  232. package/utils/node_modules/axios/lib/core/settle.js +27 -0
  233. package/utils/node_modules/axios/lib/core/transformData.js +28 -0
  234. package/utils/node_modules/axios/lib/defaults/index.js +161 -0
  235. package/utils/node_modules/axios/lib/defaults/transitional.js +7 -0
  236. package/utils/node_modules/axios/lib/env/README.md +3 -0
  237. package/utils/node_modules/axios/lib/env/classes/FormData.js +2 -0
  238. package/utils/node_modules/axios/lib/env/data.js +1 -0
  239. package/utils/node_modules/axios/lib/helpers/AxiosTransformStream.js +143 -0
  240. package/utils/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +58 -0
  241. package/utils/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  242. package/utils/node_modules/axios/lib/helpers/README.md +7 -0
  243. package/utils/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +28 -0
  244. package/utils/node_modules/axios/lib/helpers/bind.js +7 -0
  245. package/utils/node_modules/axios/lib/helpers/buildURL.js +63 -0
  246. package/utils/node_modules/axios/lib/helpers/callbackify.js +16 -0
  247. package/utils/node_modules/axios/lib/helpers/combineURLs.js +15 -0
  248. package/utils/node_modules/axios/lib/helpers/composeSignals.js +46 -0
  249. package/utils/node_modules/axios/lib/helpers/cookies.js +42 -0
  250. package/utils/node_modules/axios/lib/helpers/deprecatedMethod.js +26 -0
  251. package/utils/node_modules/axios/lib/helpers/formDataToJSON.js +95 -0
  252. package/utils/node_modules/axios/lib/helpers/formDataToStream.js +111 -0
  253. package/utils/node_modules/axios/lib/helpers/fromDataURI.js +53 -0
  254. package/utils/node_modules/axios/lib/helpers/isAbsoluteURL.js +15 -0
  255. package/utils/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  256. package/utils/node_modules/axios/lib/helpers/isURLSameOrigin.js +67 -0
  257. package/utils/node_modules/axios/lib/helpers/null.js +2 -0
  258. package/utils/node_modules/axios/lib/helpers/parseHeaders.js +55 -0
  259. package/utils/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  260. package/utils/node_modules/axios/lib/helpers/progressEventReducer.js +44 -0
  261. package/utils/node_modules/axios/lib/helpers/readBlob.js +15 -0
  262. package/utils/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
  263. package/utils/node_modules/axios/lib/helpers/speedometer.js +55 -0
  264. package/utils/node_modules/axios/lib/helpers/spread.js +28 -0
  265. package/utils/node_modules/axios/lib/helpers/throttle.js +44 -0
  266. package/utils/node_modules/axios/lib/helpers/toFormData.js +219 -0
  267. package/utils/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
  268. package/utils/node_modules/axios/lib/helpers/trackStream.js +67 -0
  269. package/utils/node_modules/axios/lib/helpers/validator.js +91 -0
  270. package/utils/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  271. package/utils/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  272. package/utils/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  273. package/utils/node_modules/axios/lib/platform/browser/index.js +13 -0
  274. package/utils/node_modules/axios/lib/platform/common/utils.js +50 -0
  275. package/utils/node_modules/axios/lib/platform/index.js +7 -0
  276. package/utils/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  277. package/utils/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  278. package/utils/node_modules/axios/lib/platform/node/index.js +12 -0
  279. package/utils/node_modules/axios/lib/utils.js +760 -0
  280. package/utils/node_modules/axios/package.json +219 -0
  281. package/utils/node_modules/combined-stream/License +19 -0
  282. package/utils/node_modules/combined-stream/Readme.md +138 -0
  283. package/utils/node_modules/combined-stream/lib/combined_stream.js +208 -0
  284. package/utils/node_modules/combined-stream/package.json +25 -0
  285. package/utils/node_modules/combined-stream/yarn.lock +17 -0
  286. package/utils/node_modules/delayed-stream/License +19 -0
  287. package/utils/node_modules/delayed-stream/Makefile +7 -0
  288. package/utils/node_modules/delayed-stream/Readme.md +141 -0
  289. package/utils/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
  290. package/utils/node_modules/delayed-stream/package.json +27 -0
  291. package/utils/node_modules/diskinfo/LICENSE.md +9 -0
  292. package/utils/node_modules/diskinfo/README.md +24 -0
  293. package/utils/node_modules/diskinfo/lib/diskinfo.js +142 -0
  294. package/utils/node_modules/diskinfo/package.json +32 -0
  295. package/utils/node_modules/diskinfo/test/test.js +15 -0
  296. package/utils/node_modules/follow-redirects/LICENSE +18 -0
  297. package/utils/node_modules/follow-redirects/README.md +155 -0
  298. package/utils/node_modules/follow-redirects/debug.js +15 -0
  299. package/utils/node_modules/follow-redirects/http.js +1 -0
  300. package/utils/node_modules/follow-redirects/https.js +1 -0
  301. package/utils/node_modules/follow-redirects/index.js +672 -0
  302. package/utils/node_modules/follow-redirects/package.json +58 -0
  303. package/utils/node_modules/form-data/License +19 -0
  304. package/utils/node_modules/form-data/README.md.bak +358 -0
  305. package/utils/node_modules/form-data/Readme.md +358 -0
  306. package/utils/node_modules/form-data/index.d.ts +62 -0
  307. package/utils/node_modules/form-data/lib/browser.js +2 -0
  308. package/utils/node_modules/form-data/lib/form_data.js +501 -0
  309. package/utils/node_modules/form-data/lib/populate.js +10 -0
  310. package/utils/node_modules/form-data/package.json +68 -0
  311. package/utils/node_modules/mime-db/HISTORY.md +507 -0
  312. package/utils/node_modules/mime-db/LICENSE +23 -0
  313. package/utils/node_modules/mime-db/README.md +100 -0
  314. package/utils/node_modules/mime-db/db.json +8519 -0
  315. package/utils/node_modules/mime-db/index.js +12 -0
  316. package/utils/node_modules/mime-db/package.json +60 -0
  317. package/utils/node_modules/mime-types/HISTORY.md +397 -0
  318. package/utils/node_modules/mime-types/LICENSE +23 -0
  319. package/utils/node_modules/mime-types/README.md +113 -0
  320. package/utils/node_modules/mime-types/index.js +188 -0
  321. package/utils/node_modules/mime-types/package.json +44 -0
  322. package/utils/node_modules/proxy-from-env/.eslintrc +29 -0
  323. package/utils/node_modules/proxy-from-env/.travis.yml +10 -0
  324. package/utils/node_modules/proxy-from-env/LICENSE +20 -0
  325. package/utils/node_modules/proxy-from-env/README.md +131 -0
  326. package/utils/node_modules/proxy-from-env/index.js +108 -0
  327. package/utils/node_modules/proxy-from-env/package.json +34 -0
  328. package/utils/node_modules/proxy-from-env/test.js +483 -0
  329. package/utils/package-lock.json +122 -0
  330. package/utils/package.json +6 -0
  331. package/utils/request/webhook.js +1 -0
@@ -0,0 +1,1695 @@
1
+ <h3 align="center">
2
+ Platinum sponsors
3
+ <br>
4
+ </h3>
5
+
6
+ <div align="center">
7
+ <a href="https://runalloy.com?utm_source=github&utm_medium=referral&utm_campaign=121423_axios">
8
+ <picture>
9
+ <source width="400px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/f6067247-7eba-4069-852a-ab1bb85b1780">
10
+ <source width="400px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/75c37f4d-36e6-44f5-a068-3edd77c00a10">
11
+ <img width="400px" src="https://github.com/axios/axios/assets/4814473/75c37f4d-36e6-44f5-a068-3edd77c00a10" />
12
+ </picture>
13
+ </a>
14
+
15
+ <p align="center">Alloy is the integration development platform that makes it simple and <br>fast for SaaS companies to launch critical user-facing integrations.</p>
16
+ <p align="center">
17
+ <a href="https://runalloy.com/signup?utm_source=github&utm_medium=referral&utm_campaign=11823_axios"><b>Sign up free</b></a> •
18
+ <a href="https://docs.runalloy.com/docs?utm_source=github&utm_medium=referral&utm_campaign=11823_axios"><b>Documentation</b></a>
19
+ </p>
20
+ <br><br>
21
+ </div>
22
+
23
+ <h3 align="center">
24
+ Gold sponsors
25
+ <br><br>
26
+ </h3>
27
+
28
+ <table border="0">
29
+ <td align="center">
30
+ <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=logo&utm_campaign=axios-http">
31
+ <picture>
32
+ <source width="200px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/538d715a-13c7-4668-ae7d-37a4548423f4">
33
+ <source width="200px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/b6a9a7bc-9fb1-4b9b-909f-1b4bee1fd142">
34
+ <img width="200px" src="https://github.com/axios/axios/assets/4814473/b6a9a7bc-9fb1-4b9b-909f-1b4bee1fd142" />
35
+ </picture>
36
+ </a>
37
+ <p align="center">API-first authentication, authorization, and fraud prevention</p>
38
+ <p align="center">
39
+ <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http"><b>Website</b></a> •
40
+ <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http"><b>Documentation</b></a> • <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http"><b>Node.js Backend SDK</b></a>
41
+ </p>
42
+ </td>
43
+ <td align="center">
44
+ <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=logo&utm_campaign=axios-http">
45
+ <picture>
46
+ <source width="200px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/79f572f3-9d57-488d-80cc-58d674bb98d8">
47
+ <source width="200px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/18b51893-c4b4-4557-b263-74c2b3de84ab">
48
+ <img width="200px" src="https://github.com/axios/axios/assets/4814473/18b51893-c4b4-4557-b263-74c2b3de84ab" />
49
+ </picture>
50
+ </a>
51
+ <p align="center">Drag-and-drop authentication, authorization, and identity management</p>
52
+ <p align="center">
53
+ <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Website</b></a> •
54
+ <a href="https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Documentation</b></a> • <a href="https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Community</b></a>
55
+ </p>
56
+ </td>
57
+ </table>
58
+
59
+
60
+ <br><br>
61
+ <div align="center">
62
+ <a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" /></a><br>
63
+ </div>
64
+
65
+ <p align="center">Promise based HTTP client for the browser and node.js</p>
66
+
67
+ <p align="center">
68
+ <a href="https://axios-http.com/"><b>Website</b></a> •
69
+ <a href="https://axios-http.com/docs/intro"><b>Documentation</b></a>
70
+ </p>
71
+
72
+ <div align="center">
73
+
74
+ [![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)
75
+ [![CDNJS](https://img.shields.io/cdnjs/v/axios.svg?style=flat-square)](https://cdnjs.com/libraries/axios)
76
+ [![Build status](https://img.shields.io/github/actions/workflow/status/axios/axios/ci.yml?branch=v1.x&label=CI&logo=github&style=flat-square)](https://github.com/axios/axios/actions/workflows/ci.yml)
77
+ [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod&style=flat-square)](https://gitpod.io/#https://github.com/axios/axios)
78
+ [![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)
79
+ [![install size](https://img.shields.io/badge/dynamic/json?url=https://packagephobia.com/v2/api.json?p=axios&query=$.install.pretty&label=install%20size&style=flat-square)](https://packagephobia.now.sh/result?p=axios)
80
+ [![npm bundle size](https://img.shields.io/bundlephobia/minzip/axios?style=flat-square)](https://bundlephobia.com/package/axios@latest)
81
+ [![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](https://npm-stat.com/charts.html?package=axios)
82
+ [![gitter chat](https://img.shields.io/gitter/room/mzabriskie/axios.svg?style=flat-square)](https://gitter.im/mzabriskie/axios)
83
+ [![code helpers](https://www.codetriage.com/axios/axios/badges/users.svg)](https://www.codetriage.com/axios/axios)
84
+ [![Known Vulnerabilities](https://snyk.io/test/npm/axios/badge.svg)](https://snyk.io/test/npm/axios)
85
+
86
+
87
+
88
+
89
+ </div>
90
+
91
+ ## Table of Contents
92
+
93
+ - [Features](#features)
94
+ - [Browser Support](#browser-support)
95
+ - [Installing](#installing)
96
+ - [Package manager](#package-manager)
97
+ - [CDN](#cdn)
98
+ - [Example](#example)
99
+ - [Axios API](#axios-api)
100
+ - [Request method aliases](#request-method-aliases)
101
+ - [Concurrency 👎](#concurrency-deprecated)
102
+ - [Creating an instance](#creating-an-instance)
103
+ - [Instance methods](#instance-methods)
104
+ - [Request Config](#request-config)
105
+ - [Response Schema](#response-schema)
106
+ - [Config Defaults](#config-defaults)
107
+ - [Global axios defaults](#global-axios-defaults)
108
+ - [Custom instance defaults](#custom-instance-defaults)
109
+ - [Config order of precedence](#config-order-of-precedence)
110
+ - [Interceptors](#interceptors)
111
+ - [Multiple Interceptors](#multiple-interceptors)
112
+ - [Handling Errors](#handling-errors)
113
+ - [Cancellation](#cancellation)
114
+ - [AbortController](#abortcontroller)
115
+ - [CancelToken 👎](#canceltoken-deprecated)
116
+ - [Using application/x-www-form-urlencoded format](#using-applicationx-www-form-urlencoded-format)
117
+ - [URLSearchParams](#urlsearchparams)
118
+ - [Query string](#query-string-older-browsers)
119
+ - [🆕 Automatic serialization](#-automatic-serialization-to-urlsearchparams)
120
+ - [Using multipart/form-data format](#using-multipartform-data-format)
121
+ - [FormData](#formdata)
122
+ - [🆕 Automatic serialization](#-automatic-serialization-to-formdata)
123
+ - [Files Posting](#files-posting)
124
+ - [HTML Form Posting](#-html-form-posting-browser)
125
+ - [🆕 Progress capturing](#-progress-capturing)
126
+ - [🆕 Rate limiting](#-progress-capturing)
127
+ - [🆕 AxiosHeaders](#-axiosheaders)
128
+ - [🔥 Fetch adapter](#-fetch-adapter)
129
+ - [Semver](#semver)
130
+ - [Promises](#promises)
131
+ - [TypeScript](#typescript)
132
+ - [Resources](#resources)
133
+ - [Credits](#credits)
134
+ - [License](#license)
135
+
136
+ ## Features
137
+
138
+ - Make [XMLHttpRequests](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) from the browser
139
+ - Make [http](https://nodejs.org/api/http.html) requests from node.js
140
+ - Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API
141
+ - Intercept request and response
142
+ - Transform request and response data
143
+ - Cancel requests
144
+ - Automatic transforms for [JSON](https://www.json.org/json-en.html) data
145
+ - 🆕 Automatic data object serialization to `multipart/form-data` and `x-www-form-urlencoded` body encodings
146
+ - Client side support for protecting against [XSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery)
147
+
148
+ ## Browser Support
149
+
150
+ ![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png) | ![Safari](https://raw.githubusercontent.com/alrra/browser-logos/main/src/safari/safari_48x48.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/main/src/opera/opera_48x48.png) | ![Edge](https://raw.githubusercontent.com/alrra/browser-logos/main/src/edge/edge_48x48.png) | ![IE](https://raw.githubusercontent.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |
151
+ --- | --- | --- | --- | --- | --- |
152
+ Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
153
+
154
+ [![Browser Matrix](https://saucelabs.com/open_sauce/build_matrix/axios.svg)](https://saucelabs.com/u/axios)
155
+
156
+ ## Installing
157
+
158
+ ### Package manager
159
+
160
+ Using npm:
161
+
162
+ ```bash
163
+ $ npm install axios
164
+ ```
165
+
166
+ Using bower:
167
+
168
+ ```bash
169
+ $ bower install axios
170
+ ```
171
+
172
+ Using yarn:
173
+
174
+ ```bash
175
+ $ yarn add axios
176
+ ```
177
+
178
+ Using pnpm:
179
+
180
+ ```bash
181
+ $ pnpm add axios
182
+ ```
183
+
184
+ Once the package is installed, you can import the library using `import` or `require` approach:
185
+
186
+ ```js
187
+ import axios, {isCancel, AxiosError} from 'axios';
188
+ ```
189
+
190
+ You can also use the default export, since the named export is just a re-export from the Axios factory:
191
+
192
+ ```js
193
+ import axios from 'axios';
194
+
195
+ console.log(axios.isCancel('something'));
196
+ ````
197
+
198
+ If you use `require` for importing, **only default export is available**:
199
+
200
+ ```js
201
+ const axios = require('axios');
202
+
203
+ console.log(axios.isCancel('something'));
204
+ ```
205
+
206
+ For cases where something went wrong when trying to import a module into a custom or legacy environment,
207
+ you can try importing the module package directly:
208
+
209
+ ```js
210
+ const axios = require('axios/dist/browser/axios.cjs'); // browser commonJS bundle (ES2017)
211
+ // const axios = require('axios/dist/node/axios.cjs'); // node commonJS bundle (ES2017)
212
+ ```
213
+
214
+ ### CDN
215
+
216
+ Using jsDelivr CDN (ES5 UMD browser module):
217
+
218
+ ```html
219
+ <script src="https://cdn.jsdelivr.net/npm/axios@1.6.7/dist/axios.min.js"></script>
220
+ ```
221
+
222
+ Using unpkg CDN:
223
+
224
+ ```html
225
+ <script src="https://unpkg.com/axios@1.6.7/dist/axios.min.js"></script>
226
+ ```
227
+
228
+ ## Example
229
+
230
+ > **Note**: CommonJS usage
231
+ > In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()`, use the following approach:
232
+
233
+ ```js
234
+ import axios from 'axios';
235
+ //const axios = require('axios'); // legacy way
236
+
237
+ // Make a request for a user with a given ID
238
+ axios.get('/user?ID=12345')
239
+ .then(function (response) {
240
+ // handle success
241
+ console.log(response);
242
+ })
243
+ .catch(function (error) {
244
+ // handle error
245
+ console.log(error);
246
+ })
247
+ .finally(function () {
248
+ // always executed
249
+ });
250
+
251
+ // Optionally the request above could also be done as
252
+ axios.get('/user', {
253
+ params: {
254
+ ID: 12345
255
+ }
256
+ })
257
+ .then(function (response) {
258
+ console.log(response);
259
+ })
260
+ .catch(function (error) {
261
+ console.log(error);
262
+ })
263
+ .finally(function () {
264
+ // always executed
265
+ });
266
+
267
+ // Want to use async/await? Add the `async` keyword to your outer function/method.
268
+ async function getUser() {
269
+ try {
270
+ const response = await axios.get('/user?ID=12345');
271
+ console.log(response);
272
+ } catch (error) {
273
+ console.error(error);
274
+ }
275
+ }
276
+ ```
277
+
278
+ > **Note**: `async/await` is part of ECMAScript 2017 and is not supported in Internet
279
+ > Explorer and older browsers, so use with caution.
280
+
281
+ Performing a `POST` request
282
+
283
+ ```js
284
+ axios.post('/user', {
285
+ firstName: 'Fred',
286
+ lastName: 'Flintstone'
287
+ })
288
+ .then(function (response) {
289
+ console.log(response);
290
+ })
291
+ .catch(function (error) {
292
+ console.log(error);
293
+ });
294
+ ```
295
+
296
+ Performing multiple concurrent requests
297
+
298
+ ```js
299
+ function getUserAccount() {
300
+ return axios.get('/user/12345');
301
+ }
302
+
303
+ function getUserPermissions() {
304
+ return axios.get('/user/12345/permissions');
305
+ }
306
+
307
+ Promise.all([getUserAccount(), getUserPermissions()])
308
+ .then(function (results) {
309
+ const acct = results[0];
310
+ const perm = results[1];
311
+ });
312
+ ```
313
+
314
+ ## axios API
315
+
316
+ Requests can be made by passing the relevant config to `axios`.
317
+
318
+ ##### axios(config)
319
+
320
+ ```js
321
+ // Send a POST request
322
+ axios({
323
+ method: 'post',
324
+ url: '/user/12345',
325
+ data: {
326
+ firstName: 'Fred',
327
+ lastName: 'Flintstone'
328
+ }
329
+ });
330
+ ```
331
+
332
+ ```js
333
+ // GET request for remote image in node.js
334
+ axios({
335
+ method: 'get',
336
+ url: 'https://bit.ly/2mTM3nY',
337
+ responseType: 'stream'
338
+ })
339
+ .then(function (response) {
340
+ response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
341
+ });
342
+ ```
343
+
344
+ ##### axios(url[, config])
345
+
346
+ ```js
347
+ // Send a GET request (default method)
348
+ axios('/user/12345');
349
+ ```
350
+
351
+ ### Request method aliases
352
+
353
+ For convenience, aliases have been provided for all common request methods.
354
+
355
+ ##### axios.request(config)
356
+ ##### axios.get(url[, config])
357
+ ##### axios.delete(url[, config])
358
+ ##### axios.head(url[, config])
359
+ ##### axios.options(url[, config])
360
+ ##### axios.post(url[, data[, config]])
361
+ ##### axios.put(url[, data[, config]])
362
+ ##### axios.patch(url[, data[, config]])
363
+
364
+ ###### NOTE
365
+ When using the alias methods `url`, `method`, and `data` properties don't need to be specified in config.
366
+
367
+ ### Concurrency (Deprecated)
368
+ Please use `Promise.all` to replace the below functions.
369
+
370
+ Helper functions for dealing with concurrent requests.
371
+
372
+ axios.all(iterable)
373
+ axios.spread(callback)
374
+
375
+ ### Creating an instance
376
+
377
+ You can create a new instance of axios with a custom config.
378
+
379
+ ##### axios.create([config])
380
+
381
+ ```js
382
+ const instance = axios.create({
383
+ baseURL: 'https://some-domain.com/api/',
384
+ timeout: 1000,
385
+ headers: {'X-Custom-Header': 'foobar'}
386
+ });
387
+ ```
388
+
389
+ ### Instance methods
390
+
391
+ The available instance methods are listed below. The specified config will be merged with the instance config.
392
+
393
+ ##### axios#request(config)
394
+ ##### axios#get(url[, config])
395
+ ##### axios#delete(url[, config])
396
+ ##### axios#head(url[, config])
397
+ ##### axios#options(url[, config])
398
+ ##### axios#post(url[, data[, config]])
399
+ ##### axios#put(url[, data[, config]])
400
+ ##### axios#patch(url[, data[, config]])
401
+ ##### axios#getUri([config])
402
+
403
+ ## Request Config
404
+
405
+ These are the available config options for making requests. Only the `url` is required. Requests will default to `GET` if `method` is not specified.
406
+
407
+ ```js
408
+ {
409
+ // `url` is the server URL that will be used for the request
410
+ url: '/user',
411
+
412
+ // `method` is the request method to be used when making the request
413
+ method: 'get', // default
414
+
415
+ // `baseURL` will be prepended to `url` unless `url` is absolute.
416
+ // It can be convenient to set `baseURL` for an instance of axios to pass relative URLs
417
+ // to methods of that instance.
418
+ baseURL: 'https://some-domain.com/api/',
419
+
420
+ // `transformRequest` allows changes to the request data before it is sent to the server
421
+ // This is only applicable for request methods 'PUT', 'POST', 'PATCH' and 'DELETE'
422
+ // The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
423
+ // FormData or Stream
424
+ // You may modify the headers object.
425
+ transformRequest: [function (data, headers) {
426
+ // Do whatever you want to transform the data
427
+
428
+ return data;
429
+ }],
430
+
431
+ // `transformResponse` allows changes to the response data to be made before
432
+ // it is passed to then/catch
433
+ transformResponse: [function (data) {
434
+ // Do whatever you want to transform the data
435
+
436
+ return data;
437
+ }],
438
+
439
+ // `headers` are custom headers to be sent
440
+ headers: {'X-Requested-With': 'XMLHttpRequest'},
441
+
442
+ // `params` are the URL parameters to be sent with the request
443
+ // Must be a plain object or a URLSearchParams object
444
+ params: {
445
+ ID: 12345
446
+ },
447
+
448
+ // `paramsSerializer` is an optional config that allows you to customize serializing `params`.
449
+ paramsSerializer: {
450
+
451
+ //Custom encoder function which sends key/value pairs in an iterative fashion.
452
+ encode?: (param: string): string => { /* Do custom operations here and return transformed string */ },
453
+
454
+ // Custom serializer function for the entire parameter. Allows user to mimic pre 1.x behaviour.
455
+ serialize?: (params: Record<string, any>, options?: ParamsSerializerOptions ),
456
+
457
+ //Configuration for formatting array indexes in the params.
458
+ indexes: false // Three available options: (1) indexes: null (leads to no brackets), (2) (default) indexes: false (leads to empty brackets), (3) indexes: true (leads to brackets with indexes).
459
+ },
460
+
461
+ // `data` is the data to be sent as the request body
462
+ // Only applicable for request methods 'PUT', 'POST', 'DELETE , and 'PATCH'
463
+ // When no `transformRequest` is set, must be of one of the following types:
464
+ // - string, plain object, ArrayBuffer, ArrayBufferView, URLSearchParams
465
+ // - Browser only: FormData, File, Blob
466
+ // - Node only: Stream, Buffer, FormData (form-data package)
467
+ data: {
468
+ firstName: 'Fred'
469
+ },
470
+
471
+ // syntax alternative to send data into the body
472
+ // method post
473
+ // only the value is sent, not the key
474
+ data: 'Country=Brasil&City=Belo Horizonte',
475
+
476
+ // `timeout` specifies the number of milliseconds before the request times out.
477
+ // If the request takes longer than `timeout`, the request will be aborted.
478
+ timeout: 1000, // default is `0` (no timeout)
479
+
480
+ // `withCredentials` indicates whether or not cross-site Access-Control requests
481
+ // should be made using credentials
482
+ withCredentials: false, // default
483
+
484
+ // `adapter` allows custom handling of requests which makes testing easier.
485
+ // Return a promise and supply a valid response (see lib/adapters/README.md)
486
+ adapter: function (config) {
487
+ /* ... */
488
+ },
489
+ // Also, you can set the name of the built-in adapter, or provide an array with their names
490
+ // to choose the first available in the environment
491
+ adapter: 'xhr' // 'fetch' | 'http' | ['xhr', 'http', 'fetch']
492
+
493
+ // `auth` indicates that HTTP Basic auth should be used, and supplies credentials.
494
+ // This will set an `Authorization` header, overwriting any existing
495
+ // `Authorization` custom headers you have set using `headers`.
496
+ // Please note that only HTTP Basic auth is configurable through this parameter.
497
+ // For Bearer tokens and such, use `Authorization` custom headers instead.
498
+ auth: {
499
+ username: 'janedoe',
500
+ password: 's00pers3cret'
501
+ },
502
+
503
+ // `responseType` indicates the type of data that the server will respond with
504
+ // options are: 'arraybuffer', 'document', 'json', 'text', 'stream'
505
+ // browser only: 'blob'
506
+ responseType: 'json', // default
507
+
508
+ // `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
509
+ // Note: Ignored for `responseType` of 'stream' or client-side requests
510
+ // options are: 'ascii', 'ASCII', 'ansi', 'ANSI', 'binary', 'BINARY', 'base64', 'BASE64', 'base64url',
511
+ // 'BASE64URL', 'hex', 'HEX', 'latin1', 'LATIN1', 'ucs-2', 'UCS-2', 'ucs2', 'UCS2', 'utf-8', 'UTF-8',
512
+ // 'utf8', 'UTF8', 'utf16le', 'UTF16LE'
513
+ responseEncoding: 'utf8', // default
514
+
515
+ // `xsrfCookieName` is the name of the cookie to use as a value for xsrf token
516
+ xsrfCookieName: 'XSRF-TOKEN', // default
517
+
518
+ // `xsrfHeaderName` is the name of the http header that carries the xsrf token value
519
+ xsrfHeaderName: 'X-XSRF-TOKEN', // default
520
+
521
+ // `undefined` (default) - set XSRF header only for the same origin requests
522
+ withXSRFToken: boolean | undefined | ((config: InternalAxiosRequestConfig) => boolean | undefined),
523
+
524
+ // `onUploadProgress` allows handling of progress events for uploads
525
+ // browser & node.js
526
+ onUploadProgress: function ({loaded, total, progress, bytes, estimated, rate, upload = true}) {
527
+ // Do whatever you want with the Axios progress event
528
+ },
529
+
530
+ // `onDownloadProgress` allows handling of progress events for downloads
531
+ // browser & node.js
532
+ onDownloadProgress: function ({loaded, total, progress, bytes, estimated, rate, download = true}) {
533
+ // Do whatever you want with the Axios progress event
534
+ },
535
+
536
+ // `maxContentLength` defines the max size of the http response content in bytes allowed in node.js
537
+ maxContentLength: 2000,
538
+
539
+ // `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
540
+ maxBodyLength: 2000,
541
+
542
+ // `validateStatus` defines whether to resolve or reject the promise for a given
543
+ // HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
544
+ // or `undefined`), the promise will be resolved; otherwise, the promise will be
545
+ // rejected.
546
+ validateStatus: function (status) {
547
+ return status >= 200 && status < 300; // default
548
+ },
549
+
550
+ // `maxRedirects` defines the maximum number of redirects to follow in node.js.
551
+ // If set to 0, no redirects will be followed.
552
+ maxRedirects: 21, // default
553
+
554
+ // `beforeRedirect` defines a function that will be called before redirect.
555
+ // Use this to adjust the request options upon redirecting,
556
+ // to inspect the latest response headers,
557
+ // or to cancel the request by throwing an error
558
+ // If maxRedirects is set to 0, `beforeRedirect` is not used.
559
+ beforeRedirect: (options, { headers }) => {
560
+ if (options.hostname === "example.com") {
561
+ options.auth = "user:password";
562
+ }
563
+ },
564
+
565
+ // `socketPath` defines a UNIX Socket to be used in node.js.
566
+ // e.g. '/var/run/docker.sock' to send requests to the docker daemon.
567
+ // Only either `socketPath` or `proxy` can be specified.
568
+ // If both are specified, `socketPath` is used.
569
+ socketPath: null, // default
570
+
571
+ // `transport` determines the transport method that will be used to make the request. If defined, it will be used. Otherwise, if `maxRedirects` is 0, the default `http` or `https` library will be used, depending on the protocol specified in `protocol`. Otherwise, the `httpFollow` or `httpsFollow` library will be used, again depending on the protocol, which can handle redirects.
572
+ transport: undefined, // default
573
+
574
+ // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
575
+ // and https requests, respectively, in node.js. This allows options to be added like
576
+ // `keepAlive` that are not enabled by default.
577
+ httpAgent: new http.Agent({ keepAlive: true }),
578
+ httpsAgent: new https.Agent({ keepAlive: true }),
579
+
580
+ // `proxy` defines the hostname, port, and protocol of the proxy server.
581
+ // You can also define your proxy using the conventional `http_proxy` and
582
+ // `https_proxy` environment variables. If you are using environment variables
583
+ // for your proxy configuration, you can also define a `no_proxy` environment
584
+ // variable as a comma-separated list of domains that should not be proxied.
585
+ // Use `false` to disable proxies, ignoring environment variables.
586
+ // `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and
587
+ // supplies credentials.
588
+ // This will set an `Proxy-Authorization` header, overwriting any existing
589
+ // `Proxy-Authorization` custom headers you have set using `headers`.
590
+ // If the proxy server uses HTTPS, then you must set the protocol to `https`.
591
+ proxy: {
592
+ protocol: 'https',
593
+ host: '127.0.0.1',
594
+ // hostname: '127.0.0.1' // Takes precedence over 'host' if both are defined
595
+ port: 9000,
596
+ auth: {
597
+ username: 'mikeymike',
598
+ password: 'rapunz3l'
599
+ }
600
+ },
601
+
602
+ // `cancelToken` specifies a cancel token that can be used to cancel the request
603
+ // (see Cancellation section below for details)
604
+ cancelToken: new CancelToken(function (cancel) {
605
+ }),
606
+
607
+ // an alternative way to cancel Axios requests using AbortController
608
+ signal: new AbortController().signal,
609
+
610
+ // `decompress` indicates whether or not the response body should be decompressed
611
+ // automatically. If set to `true` will also remove the 'content-encoding' header
612
+ // from the responses objects of all decompressed responses
613
+ // - Node only (XHR cannot turn off decompression)
614
+ decompress: true, // default
615
+
616
+ // `insecureHTTPParser` boolean.
617
+ // Indicates where to use an insecure HTTP parser that accepts invalid HTTP headers.
618
+ // This may allow interoperability with non-conformant HTTP implementations.
619
+ // Using the insecure parser should be avoided.
620
+ // see options https://nodejs.org/dist/latest-v12.x/docs/api/http.html#http_http_request_url_options_callback
621
+ // see also https://nodejs.org/en/blog/vulnerability/february-2020-security-releases/#strict-http-header-parsing-none
622
+ insecureHTTPParser: undefined, // default
623
+
624
+ // transitional options for backward compatibility that may be removed in the newer versions
625
+ transitional: {
626
+ // silent JSON parsing mode
627
+ // `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour)
628
+ // `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json')
629
+ silentJSONParsing: true, // default value for the current Axios version
630
+
631
+ // try to parse the response string as JSON even if `responseType` is not 'json'
632
+ forcedJSONParsing: true,
633
+
634
+ // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
635
+ clarifyTimeoutError: false,
636
+ },
637
+
638
+ env: {
639
+ // The FormData class to be used to automatically serialize the payload into a FormData object
640
+ FormData: window?.FormData || global?.FormData
641
+ },
642
+
643
+ formSerializer: {
644
+ visitor: (value, key, path, helpers) => {}; // custom visitor function to serialize form values
645
+ dots: boolean; // use dots instead of brackets format
646
+ metaTokens: boolean; // keep special endings like {} in parameter key
647
+ indexes: boolean; // array indexes format null - no brackets, false - empty brackets, true - brackets with indexes
648
+ },
649
+
650
+ // http adapter only (node.js)
651
+ maxRate: [
652
+ 100 * 1024, // 100KB/s upload limit,
653
+ 100 * 1024 // 100KB/s download limit
654
+ ]
655
+ }
656
+ ```
657
+
658
+ ## Response Schema
659
+
660
+ The response for a request contains the following information.
661
+
662
+ ```js
663
+ {
664
+ // `data` is the response that was provided by the server
665
+ data: {},
666
+
667
+ // `status` is the HTTP status code from the server response
668
+ status: 200,
669
+
670
+ // `statusText` is the HTTP status message from the server response
671
+ statusText: 'OK',
672
+
673
+ // `headers` the HTTP headers that the server responded with
674
+ // All header names are lowercase and can be accessed using the bracket notation.
675
+ // Example: `response.headers['content-type']`
676
+ headers: {},
677
+
678
+ // `config` is the config that was provided to `axios` for the request
679
+ config: {},
680
+
681
+ // `request` is the request that generated this response
682
+ // It is the last ClientRequest instance in node.js (in redirects)
683
+ // and an XMLHttpRequest instance in the browser
684
+ request: {}
685
+ }
686
+ ```
687
+
688
+ When using `then`, you will receive the response as follows:
689
+
690
+ ```js
691
+ axios.get('/user/12345')
692
+ .then(function (response) {
693
+ console.log(response.data);
694
+ console.log(response.status);
695
+ console.log(response.statusText);
696
+ console.log(response.headers);
697
+ console.log(response.config);
698
+ });
699
+ ```
700
+
701
+ When using `catch`, or passing a [rejection callback](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then) as second parameter of `then`, the response will be available through the `error` object as explained in the [Handling Errors](#handling-errors) section.
702
+
703
+ ## Config Defaults
704
+
705
+ You can specify config defaults that will be applied to every request.
706
+
707
+ ### Global axios defaults
708
+
709
+ ```js
710
+ axios.defaults.baseURL = 'https://api.example.com';
711
+
712
+ // Important: If axios is used with multiple domains, the AUTH_TOKEN will be sent to all of them.
713
+ // See below for an example using Custom instance defaults instead.
714
+ axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
715
+
716
+ axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
717
+ ```
718
+
719
+ ### Custom instance defaults
720
+
721
+ ```js
722
+ // Set config defaults when creating the instance
723
+ const instance = axios.create({
724
+ baseURL: 'https://api.example.com'
725
+ });
726
+
727
+ // Alter defaults after instance has been created
728
+ instance.defaults.headers.common['Authorization'] = AUTH_TOKEN;
729
+ ```
730
+
731
+ ### Config order of precedence
732
+
733
+ Config will be merged with an order of precedence. The order is library defaults found in [lib/defaults.js](https://github.com/axios/axios/blob/master/lib/defaults/index.js#L28), then `defaults` property of the instance, and finally `config` argument for the request. The latter will take precedence over the former. Here's an example.
734
+
735
+ ```js
736
+ // Create an instance using the config defaults provided by the library
737
+ // At this point the timeout config value is `0` as is the default for the library
738
+ const instance = axios.create();
739
+
740
+ // Override timeout default for the library
741
+ // Now all requests using this instance will wait 2.5 seconds before timing out
742
+ instance.defaults.timeout = 2500;
743
+
744
+ // Override timeout for this request as it's known to take a long time
745
+ instance.get('/longRequest', {
746
+ timeout: 5000
747
+ });
748
+ ```
749
+
750
+ ## Interceptors
751
+
752
+ You can intercept requests or responses before they are handled by `then` or `catch`.
753
+
754
+ ```js
755
+ // Add a request interceptor
756
+ axios.interceptors.request.use(function (config) {
757
+ // Do something before request is sent
758
+ return config;
759
+ }, function (error) {
760
+ // Do something with request error
761
+ return Promise.reject(error);
762
+ });
763
+
764
+ // Add a response interceptor
765
+ axios.interceptors.response.use(function (response) {
766
+ // Any status code that lie within the range of 2xx cause this function to trigger
767
+ // Do something with response data
768
+ return response;
769
+ }, function (error) {
770
+ // Any status codes that falls outside the range of 2xx cause this function to trigger
771
+ // Do something with response error
772
+ return Promise.reject(error);
773
+ });
774
+ ```
775
+
776
+ If you need to remove an interceptor later you can.
777
+
778
+ ```js
779
+ const myInterceptor = axios.interceptors.request.use(function () {/*...*/});
780
+ axios.interceptors.request.eject(myInterceptor);
781
+ ```
782
+
783
+ You can also clear all interceptors for requests or responses.
784
+ ```js
785
+ const instance = axios.create();
786
+ instance.interceptors.request.use(function () {/*...*/});
787
+ instance.interceptors.request.clear(); // Removes interceptors from requests
788
+ instance.interceptors.response.use(function () {/*...*/});
789
+ instance.interceptors.response.clear(); // Removes interceptors from responses
790
+ ```
791
+
792
+ You can add interceptors to a custom instance of axios.
793
+
794
+ ```js
795
+ const instance = axios.create();
796
+ instance.interceptors.request.use(function () {/*...*/});
797
+ ```
798
+
799
+ When you add request interceptors, they are presumed to be asynchronous by default. This can cause a delay
800
+ in the execution of your axios request when the main thread is blocked (a promise is created under the hood for
801
+ the interceptor and your request gets put on the bottom of the call stack). If your request interceptors are synchronous you can add a flag
802
+ to the options object that will tell axios to run the code synchronously and avoid any delays in request execution.
803
+
804
+ ```js
805
+ axios.interceptors.request.use(function (config) {
806
+ config.headers.test = 'I am only a header!';
807
+ return config;
808
+ }, null, { synchronous: true });
809
+ ```
810
+
811
+ If you want to execute a particular interceptor based on a runtime check,
812
+ you can add a `runWhen` function to the options object. The interceptor will not be executed **if and only if** the return
813
+ of `runWhen` is `false`. The function will be called with the config
814
+ object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an
815
+ asynchronous request interceptor that only needs to run at certain times.
816
+
817
+ ```js
818
+ function onGetCall(config) {
819
+ return config.method === 'get';
820
+ }
821
+ axios.interceptors.request.use(function (config) {
822
+ config.headers.test = 'special get headers';
823
+ return config;
824
+ }, null, { runWhen: onGetCall });
825
+ ```
826
+
827
+ ### Multiple Interceptors
828
+
829
+ Given you add multiple response interceptors
830
+ and when the response was fulfilled
831
+ - then each interceptor is executed
832
+ - then they are executed in the order they were added
833
+ - then only the last interceptor's result is returned
834
+ - then every interceptor receives the result of its predecessor
835
+ - and when the fulfillment-interceptor throws
836
+ - then the following fulfillment-interceptor is not called
837
+ - then the following rejection-interceptor is called
838
+ - once caught, another following fulfill-interceptor is called again (just like in a promise chain).
839
+
840
+ Read [the interceptor tests](./test/specs/interceptors.spec.js) for seeing all this in code.
841
+
842
+ ## Error Types
843
+
844
+ There are many different axios error messages that can appear that can provide basic information about the specifics of the error and where opportunities may lie in debugging.
845
+
846
+ The general structure of axios errors is as follows:
847
+ | Property | Definition |
848
+ | -------- | ---------- |
849
+ | message | A quick summary of the error message and the status it failed with. |
850
+ | name | This defines where the error originated from. For axios, it will always be an 'AxiosError'. |
851
+ | stack | Provides the stack trace of the error. |
852
+ | config | An axios config object with specific instance configurations defined by the user from when the request was made |
853
+ | code | Represents an axios identified error. The table below lists out specific definitions for internal axios error. |
854
+ | status | HTTP response status code. See [here](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) for common HTTP response status code meanings.
855
+
856
+ Below is a list of potential axios identified error
857
+ | Code | Definition |
858
+ | -------- | ---------- |
859
+ | ERR_BAD_OPTION_VALUE | Invalid or unsupported value provided in axios configuration. |
860
+ | ERR_BAD_OPTION | Invalid option provided in axios configuration. |
861
+ | ECONNABORTED | Request timed out due to exceeding timeout specified in axios configuration. |
862
+ | ETIMEDOUT | Request timed out due to exceeding default axios timelimit. |
863
+ | ERR_NETWORK | Network-related issue.
864
+ | ERR_FR_TOO_MANY_REDIRECTS | Request is redirected too many times; exceeds max redirects specified in axios configuration.
865
+ | ERR_DEPRECATED | Deprecated feature or method used in axios.
866
+ | ERR_BAD_RESPONSE | Response cannot be parsed properly or is in an unexpected format.
867
+ | ERR_BAD_REQUEST | Requested has unexpected format or missing required parameters. |
868
+ | ERR_CANCELED | Feature or method is canceled explicitly by the user.
869
+ | ERR_NOT_SUPPORT | Feature or method not supported in the current axios environment.
870
+ | ERR_INVALID_URL | Invalid URL provided for axios request.
871
+
872
+ ## Handling Errors
873
+
874
+ the default behavior is to reject every response that returns with a status code that falls out of the range of 2xx and treat it as an error.
875
+
876
+ ```js
877
+ axios.get('/user/12345')
878
+ .catch(function (error) {
879
+ if (error.response) {
880
+ // The request was made and the server responded with a status code
881
+ // that falls out of the range of 2xx
882
+ console.log(error.response.data);
883
+ console.log(error.response.status);
884
+ console.log(error.response.headers);
885
+ } else if (error.request) {
886
+ // The request was made but no response was received
887
+ // `error.request` is an instance of XMLHttpRequest in the browser and an instance of
888
+ // http.ClientRequest in node.js
889
+ console.log(error.request);
890
+ } else {
891
+ // Something happened in setting up the request that triggered an Error
892
+ console.log('Error', error.message);
893
+ }
894
+ console.log(error.config);
895
+ });
896
+ ```
897
+
898
+ Using the `validateStatus` config option, you can override the default condition (status >= 200 && status < 300) and define HTTP code(s) that should throw an error.
899
+
900
+ ```js
901
+ axios.get('/user/12345', {
902
+ validateStatus: function (status) {
903
+ return status < 500; // Resolve only if the status code is less than 500
904
+ }
905
+ })
906
+ ```
907
+
908
+ Using `toJSON` you get an object with more information about the HTTP error.
909
+
910
+ ```js
911
+ axios.get('/user/12345')
912
+ .catch(function (error) {
913
+ console.log(error.toJSON());
914
+ });
915
+ ```
916
+
917
+ ## Cancellation
918
+
919
+ ### AbortController
920
+
921
+ Starting from `v0.22.0` Axios supports AbortController to cancel requests in fetch API way:
922
+
923
+ ```js
924
+ const controller = new AbortController();
925
+
926
+ axios.get('/foo/bar', {
927
+ signal: controller.signal
928
+ }).then(function(response) {
929
+ //...
930
+ });
931
+ // cancel the request
932
+ controller.abort()
933
+ ```
934
+
935
+ ### CancelToken `👎deprecated`
936
+
937
+ You can also cancel a request using a *CancelToken*.
938
+
939
+ > The axios cancel token API is based on the withdrawn [cancellable promises proposal](https://github.com/tc39/proposal-cancelable-promises).
940
+
941
+ > This API is deprecated since v0.22.0 and shouldn't be used in new projects
942
+
943
+ You can create a cancel token using the `CancelToken.source` factory as shown below:
944
+
945
+ ```js
946
+ const CancelToken = axios.CancelToken;
947
+ const source = CancelToken.source();
948
+
949
+ axios.get('/user/12345', {
950
+ cancelToken: source.token
951
+ }).catch(function (thrown) {
952
+ if (axios.isCancel(thrown)) {
953
+ console.log('Request canceled', thrown.message);
954
+ } else {
955
+ // handle error
956
+ }
957
+ });
958
+
959
+ axios.post('/user/12345', {
960
+ name: 'new name'
961
+ }, {
962
+ cancelToken: source.token
963
+ })
964
+
965
+ // cancel the request (the message parameter is optional)
966
+ source.cancel('Operation canceled by the user.');
967
+ ```
968
+
969
+ You can also create a cancel token by passing an executor function to the `CancelToken` constructor:
970
+
971
+ ```js
972
+ const CancelToken = axios.CancelToken;
973
+ let cancel;
974
+
975
+ axios.get('/user/12345', {
976
+ cancelToken: new CancelToken(function executor(c) {
977
+ // An executor function receives a cancel function as a parameter
978
+ cancel = c;
979
+ })
980
+ });
981
+
982
+ // cancel the request
983
+ cancel();
984
+ ```
985
+
986
+ > **Note:** you can cancel several requests with the same cancel token/abort controller.
987
+ > If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make a real request.
988
+
989
+ > During the transition period, you can use both cancellation APIs, even for the same request:
990
+
991
+ ## Using `application/x-www-form-urlencoded` format
992
+
993
+ ### URLSearchParams
994
+
995
+ By default, axios serializes JavaScript objects to `JSON`. To send data in the [`application/x-www-form-urlencoded` format](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) instead, you can use the [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) API, which is [supported](http://www.caniuse.com/#feat=urlsearchparams) in the vast majority of browsers,and [ Node](https://nodejs.org/api/url.html#url_class_urlsearchparams) starting with v10 (released in 2018).
996
+
997
+ ```js
998
+ const params = new URLSearchParams({ foo: 'bar' });
999
+ params.append('extraparam', 'value');
1000
+ axios.post('/foo', params);
1001
+ ```
1002
+
1003
+ ### Query string (Older browsers)
1004
+
1005
+ For compatibility with very old browsers, there is a [polyfill](https://github.com/WebReflection/url-search-params) available (make sure to polyfill the global environment).
1006
+
1007
+ Alternatively, you can encode data using the [`qs`](https://github.com/ljharb/qs) library:
1008
+
1009
+ ```js
1010
+ const qs = require('qs');
1011
+ axios.post('/foo', qs.stringify({ 'bar': 123 }));
1012
+ ```
1013
+
1014
+ Or in another way (ES6),
1015
+
1016
+ ```js
1017
+ import qs from 'qs';
1018
+ const data = { 'bar': 123 };
1019
+ const options = {
1020
+ method: 'POST',
1021
+ headers: { 'content-type': 'application/x-www-form-urlencoded' },
1022
+ data: qs.stringify(data),
1023
+ url,
1024
+ };
1025
+ axios(options);
1026
+ ```
1027
+
1028
+ ### Older Node.js versions
1029
+
1030
+ For older Node.js engines, you can use the [`querystring`](https://nodejs.org/api/querystring.html) module as follows:
1031
+
1032
+ ```js
1033
+ const querystring = require('querystring');
1034
+ axios.post('https://something.com/', querystring.stringify({ foo: 'bar' }));
1035
+ ```
1036
+
1037
+ You can also use the [`qs`](https://github.com/ljharb/qs) library.
1038
+
1039
+ > **Note**: The `qs` library is preferable if you need to stringify nested objects, as the `querystring` method has [known issues](https://github.com/nodejs/node-v0.x-archive/issues/1665) with that use case.
1040
+
1041
+ ### 🆕 Automatic serialization to URLSearchParams
1042
+
1043
+ Axios will automatically serialize the data object to urlencoded format if the content-type header is set to "application/x-www-form-urlencoded".
1044
+
1045
+ ```js
1046
+ const data = {
1047
+ x: 1,
1048
+ arr: [1, 2, 3],
1049
+ arr2: [1, [2], 3],
1050
+ users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}],
1051
+ };
1052
+
1053
+ await axios.postForm('https://postman-echo.com/post', data,
1054
+ {headers: {'content-type': 'application/x-www-form-urlencoded'}}
1055
+ );
1056
+ ```
1057
+
1058
+ The server will handle it as:
1059
+
1060
+ ```js
1061
+ {
1062
+ x: '1',
1063
+ 'arr[]': [ '1', '2', '3' ],
1064
+ 'arr2[0]': '1',
1065
+ 'arr2[1][0]': '2',
1066
+ 'arr2[2]': '3',
1067
+ 'arr3[]': [ '1', '2', '3' ],
1068
+ 'users[0][name]': 'Peter',
1069
+ 'users[0][surname]': 'griffin',
1070
+ 'users[1][name]': 'Thomas',
1071
+ 'users[1][surname]': 'Anderson'
1072
+ }
1073
+ ````
1074
+
1075
+ If your backend body-parser (like `body-parser` of `express.js`) supports nested objects decoding, you will get the same object on the server-side automatically
1076
+
1077
+ ```js
1078
+ var app = express();
1079
+
1080
+ app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies
1081
+
1082
+ app.post('/', function (req, res, next) {
1083
+ // echo body as JSON
1084
+ res.send(JSON.stringify(req.body));
1085
+ });
1086
+
1087
+ server = app.listen(3000);
1088
+ ```
1089
+
1090
+ ## Using `multipart/form-data` format
1091
+
1092
+ ### FormData
1093
+
1094
+ To send the data as a `multipart/formdata` you need to pass a formData instance as a payload.
1095
+ Setting the `Content-Type` header is not required as Axios guesses it based on the payload type.
1096
+
1097
+ ```js
1098
+ const formData = new FormData();
1099
+ formData.append('foo', 'bar');
1100
+
1101
+ axios.post('https://httpbin.org/post', formData);
1102
+ ```
1103
+
1104
+ In node.js, you can use the [`form-data`](https://github.com/form-data/form-data) library as follows:
1105
+
1106
+ ```js
1107
+ const FormData = require('form-data');
1108
+
1109
+ const form = new FormData();
1110
+ form.append('my_field', 'my value');
1111
+ form.append('my_buffer', new Buffer(10));
1112
+ form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
1113
+
1114
+ axios.post('https://example.com', form)
1115
+ ```
1116
+
1117
+ ### 🆕 Automatic serialization to FormData
1118
+
1119
+ Starting from `v0.27.0`, Axios supports automatic object serialization to a FormData object if the request `Content-Type`
1120
+ header is set to `multipart/form-data`.
1121
+
1122
+ The following request will submit the data in a FormData format (Browser & Node.js):
1123
+
1124
+ ```js
1125
+ import axios from 'axios';
1126
+
1127
+ axios.post('https://httpbin.org/post', {x: 1}, {
1128
+ headers: {
1129
+ 'Content-Type': 'multipart/form-data'
1130
+ }
1131
+ }).then(({data}) => console.log(data));
1132
+ ```
1133
+
1134
+ In the `node.js` build, the ([`form-data`](https://github.com/form-data/form-data)) polyfill is used by default.
1135
+
1136
+ You can overload the FormData class by setting the `env.FormData` config variable,
1137
+ but you probably won't need it in most cases:
1138
+
1139
+ ```js
1140
+ const axios = require('axios');
1141
+ var FormData = require('form-data');
1142
+
1143
+ axios.post('https://httpbin.org/post', {x: 1, buf: new Buffer(10)}, {
1144
+ headers: {
1145
+ 'Content-Type': 'multipart/form-data'
1146
+ }
1147
+ }).then(({data}) => console.log(data));
1148
+ ```
1149
+
1150
+ Axios FormData serializer supports some special endings to perform the following operations:
1151
+
1152
+ - `{}` - serialize the value with JSON.stringify
1153
+ - `[]` - unwrap the array-like object as separate fields with the same key
1154
+
1155
+ > **Note**: unwrap/expand operation will be used by default on arrays and FileList objects
1156
+
1157
+ FormData serializer supports additional options via `config.formSerializer: object` property to handle rare cases:
1158
+
1159
+ - `visitor: Function` - user-defined visitor function that will be called recursively to serialize the data object
1160
+ to a `FormData` object by following custom rules.
1161
+
1162
+ - `dots: boolean = false` - use dot notation instead of brackets to serialize arrays and objects;
1163
+
1164
+ - `metaTokens: boolean = true` - add the special ending (e.g `user{}: '{"name": "John"}'`) in the FormData key.
1165
+ The back-end body-parser could potentially use this meta-information to automatically parse the value as JSON.
1166
+
1167
+ - `indexes: null|false|true = false` - controls how indexes will be added to unwrapped keys of `flat` array-like objects
1168
+
1169
+ - `null` - don't add brackets (`arr: 1`, `arr: 2`, `arr: 3`)
1170
+ - `false`(default) - add empty brackets (`arr[]: 1`, `arr[]: 2`, `arr[]: 3`)
1171
+ - `true` - add brackets with indexes (`arr[0]: 1`, `arr[1]: 2`, `arr[2]: 3`)
1172
+
1173
+ Let's say we have an object like this one:
1174
+
1175
+ ```js
1176
+ const obj = {
1177
+ x: 1,
1178
+ arr: [1, 2, 3],
1179
+ arr2: [1, [2], 3],
1180
+ users: [{name: 'Peter', surname: 'Griffin'}, {name: 'Thomas', surname: 'Anderson'}],
1181
+ 'obj2{}': [{x:1}]
1182
+ };
1183
+ ```
1184
+
1185
+ The following steps will be executed by the Axios serializer internally:
1186
+
1187
+ ```js
1188
+ const formData = new FormData();
1189
+ formData.append('x', '1');
1190
+ formData.append('arr[]', '1');
1191
+ formData.append('arr[]', '2');
1192
+ formData.append('arr[]', '3');
1193
+ formData.append('arr2[0]', '1');
1194
+ formData.append('arr2[1][0]', '2');
1195
+ formData.append('arr2[2]', '3');
1196
+ formData.append('users[0][name]', 'Peter');
1197
+ formData.append('users[0][surname]', 'Griffin');
1198
+ formData.append('users[1][name]', 'Thomas');
1199
+ formData.append('users[1][surname]', 'Anderson');
1200
+ formData.append('obj2{}', '[{"x":1}]');
1201
+ ```
1202
+
1203
+ Axios supports the following shortcut methods: `postForm`, `putForm`, `patchForm`
1204
+ which are just the corresponding http methods with the `Content-Type` header preset to `multipart/form-data`.
1205
+
1206
+ ## Files Posting
1207
+
1208
+ You can easily submit a single file:
1209
+
1210
+ ```js
1211
+ await axios.postForm('https://httpbin.org/post', {
1212
+ 'myVar' : 'foo',
1213
+ 'file': document.querySelector('#fileInput').files[0]
1214
+ });
1215
+ ```
1216
+
1217
+ or multiple files as `multipart/form-data`:
1218
+
1219
+ ```js
1220
+ await axios.postForm('https://httpbin.org/post', {
1221
+ 'files[]': document.querySelector('#fileInput').files
1222
+ });
1223
+ ```
1224
+
1225
+ `FileList` object can be passed directly:
1226
+
1227
+ ```js
1228
+ await axios.postForm('https://httpbin.org/post', document.querySelector('#fileInput').files)
1229
+ ```
1230
+
1231
+ All files will be sent with the same field names: `files[]`.
1232
+
1233
+ ## 🆕 HTML Form Posting (browser)
1234
+
1235
+ Pass HTML Form element as a payload to submit it as `multipart/form-data` content.
1236
+
1237
+ ```js
1238
+ await axios.postForm('https://httpbin.org/post', document.querySelector('#htmlForm'));
1239
+ ```
1240
+
1241
+ `FormData` and `HTMLForm` objects can also be posted as `JSON` by explicitly setting the `Content-Type` header to `application/json`:
1242
+
1243
+ ```js
1244
+ await axios.post('https://httpbin.org/post', document.querySelector('#htmlForm'), {
1245
+ headers: {
1246
+ 'Content-Type': 'application/json'
1247
+ }
1248
+ })
1249
+ ```
1250
+
1251
+ For example, the Form
1252
+
1253
+ ```html
1254
+ <form id="form">
1255
+ <input type="text" name="foo" value="1">
1256
+ <input type="text" name="deep.prop" value="2">
1257
+ <input type="text" name="deep prop spaced" value="3">
1258
+ <input type="text" name="baz" value="4">
1259
+ <input type="text" name="baz" value="5">
1260
+
1261
+ <select name="user.age">
1262
+ <option value="value1">Value 1</option>
1263
+ <option value="value2" selected>Value 2</option>
1264
+ <option value="value3">Value 3</option>
1265
+ </select>
1266
+
1267
+ <input type="submit" value="Save">
1268
+ </form>
1269
+ ```
1270
+
1271
+ will be submitted as the following JSON object:
1272
+
1273
+ ```js
1274
+ {
1275
+ "foo": "1",
1276
+ "deep": {
1277
+ "prop": {
1278
+ "spaced": "3"
1279
+ }
1280
+ },
1281
+ "baz": [
1282
+ "4",
1283
+ "5"
1284
+ ],
1285
+ "user": {
1286
+ "age": "value2"
1287
+ }
1288
+ }
1289
+ ````
1290
+
1291
+ Sending `Blobs`/`Files` as JSON (`base64`) is not currently supported.
1292
+
1293
+ ## 🆕 Progress capturing
1294
+
1295
+ Axios supports both browser and node environments to capture request upload/download progress.
1296
+ The frequency of progress events is forced to be limited to `3` times per second.
1297
+
1298
+ ```js
1299
+ await axios.post(url, data, {
1300
+ onUploadProgress: function (axiosProgressEvent) {
1301
+ /*{
1302
+ loaded: number;
1303
+ total?: number;
1304
+ progress?: number; // in range [0..1]
1305
+ bytes: number; // how many bytes have been transferred since the last trigger (delta)
1306
+ estimated?: number; // estimated time in seconds
1307
+ rate?: number; // upload speed in bytes
1308
+ upload: true; // upload sign
1309
+ }*/
1310
+ },
1311
+
1312
+ onDownloadProgress: function (axiosProgressEvent) {
1313
+ /*{
1314
+ loaded: number;
1315
+ total?: number;
1316
+ progress?: number;
1317
+ bytes: number;
1318
+ estimated?: number;
1319
+ rate?: number; // download speed in bytes
1320
+ download: true; // download sign
1321
+ }*/
1322
+ }
1323
+ });
1324
+ ```
1325
+
1326
+ You can also track stream upload/download progress in node.js:
1327
+
1328
+ ```js
1329
+ const {data} = await axios.post(SERVER_URL, readableStream, {
1330
+ onUploadProgress: ({progress}) => {
1331
+ console.log((progress * 100).toFixed(2));
1332
+ },
1333
+
1334
+ headers: {
1335
+ 'Content-Length': contentLength
1336
+ },
1337
+
1338
+ maxRedirects: 0 // avoid buffering the entire stream
1339
+ });
1340
+ ````
1341
+
1342
+ > **Note:**
1343
+ > Capturing FormData upload progress is not currently supported in node.js environments.
1344
+
1345
+ > **⚠️ Warning**
1346
+ > It is recommended to disable redirects by setting maxRedirects: 0 to upload the stream in the **node.js** environment,
1347
+ > as follow-redirects package will buffer the entire stream in RAM without following the "backpressure" algorithm.
1348
+
1349
+
1350
+ ## 🆕 Rate limiting
1351
+
1352
+ Download and upload rate limits can only be set for the http adapter (node.js):
1353
+
1354
+ ```js
1355
+ const {data} = await axios.post(LOCAL_SERVER_URL, myBuffer, {
1356
+ onUploadProgress: ({progress, rate}) => {
1357
+ console.log(`Upload [${(progress*100).toFixed(2)}%]: ${(rate / 1024).toFixed(2)}KB/s`)
1358
+ },
1359
+
1360
+ maxRate: [100 * 1024], // 100KB/s limit
1361
+ });
1362
+ ```
1363
+
1364
+ ## 🆕 AxiosHeaders
1365
+
1366
+ Axios has its own `AxiosHeaders` class to manipulate headers using a Map-like API that guarantees caseless work.
1367
+ Although HTTP is case-insensitive in headers, Axios will retain the case of the original header for stylistic reasons
1368
+ and for a workaround when servers mistakenly consider the header's case.
1369
+ The old approach of directly manipulating headers object is still available, but deprecated and not recommended for future usage.
1370
+
1371
+ ### Working with headers
1372
+
1373
+ An AxiosHeaders object instance can contain different types of internal values. that control setting and merging logic.
1374
+ The final headers object with string values is obtained by Axios by calling the `toJSON` method.
1375
+
1376
+ > Note: By JSON here we mean an object consisting only of string values intended to be sent over the network.
1377
+
1378
+ The header value can be one of the following types:
1379
+ - `string` - normal string value that will be sent to the server
1380
+ - `null` - skip header when rendering to JSON
1381
+ - `false` - skip header when rendering to JSON, additionally indicates that `set` method must be called with `rewrite` option set to `true`
1382
+ to overwrite this value (Axios uses this internally to allow users to opt out of installing certain headers like `User-Agent` or `Content-Type`)
1383
+ - `undefined` - value is not set
1384
+
1385
+ > Note: The header value is considered set if it is not equal to undefined.
1386
+
1387
+ The headers object is always initialized inside interceptors and transformers:
1388
+
1389
+ ```ts
1390
+ axios.interceptors.request.use((request: InternalAxiosRequestConfig) => {
1391
+ request.headers.set('My-header', 'value');
1392
+
1393
+ request.headers.set({
1394
+ "My-set-header1": "my-set-value1",
1395
+ "My-set-header2": "my-set-value2"
1396
+ });
1397
+
1398
+ request.headers.set('User-Agent', false); // disable subsequent setting the header by Axios
1399
+
1400
+ request.headers.setContentType('text/plain');
1401
+
1402
+ request.headers['My-set-header2'] = 'newValue' // direct access is deprecated
1403
+
1404
+ return request;
1405
+ }
1406
+ );
1407
+ ````
1408
+
1409
+ You can iterate over an `AxiosHeaders` instance using a `for...of` statement:
1410
+
1411
+ ````js
1412
+ const headers = new AxiosHeaders({
1413
+ foo: '1',
1414
+ bar: '2',
1415
+ baz: '3'
1416
+ });
1417
+
1418
+ for(const [header, value] of headers) {
1419
+ console.log(header, value);
1420
+ }
1421
+
1422
+ // foo 1
1423
+ // bar 2
1424
+ // baz 3
1425
+ ````
1426
+
1427
+ ### new AxiosHeaders(headers?)
1428
+
1429
+ Constructs a new `AxiosHeaders` instance.
1430
+
1431
+ ```
1432
+ constructor(headers?: RawAxiosHeaders | AxiosHeaders | string);
1433
+ ```
1434
+
1435
+ If the headers object is a string, it will be parsed as RAW HTTP headers.
1436
+
1437
+ ````js
1438
+ const headers = new AxiosHeaders(`
1439
+ Host: www.bing.com
1440
+ User-Agent: curl/7.54.0
1441
+ Accept: */*`);
1442
+
1443
+ console.log(headers);
1444
+
1445
+ // Object [AxiosHeaders] {
1446
+ // host: 'www.bing.com',
1447
+ // 'user-agent': 'curl/7.54.0',
1448
+ // accept: '*/*'
1449
+ // }
1450
+ ````
1451
+
1452
+ ### AxiosHeaders#set
1453
+
1454
+ ```ts
1455
+ set(headerName, value: Axios, rewrite?: boolean);
1456
+ set(headerName, value, rewrite?: (this: AxiosHeaders, value: string, name: string, headers: RawAxiosHeaders) => boolean);
1457
+ set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean);
1458
+ ```
1459
+
1460
+ The `rewrite` argument controls the overwriting behavior:
1461
+ - `false` - do not overwrite if header's value is set (is not `undefined`)
1462
+ - `undefined` (default) - overwrite the header unless its value is set to `false`
1463
+ - `true` - rewrite anyway
1464
+
1465
+ The option can also accept a user-defined function that determines whether the value should be overwritten or not.
1466
+
1467
+ Returns `this`.
1468
+
1469
+ ### AxiosHeaders#get(header)
1470
+
1471
+ ```
1472
+ get(headerName: string, matcher?: true | AxiosHeaderMatcher): AxiosHeaderValue;
1473
+ get(headerName: string, parser: RegExp): RegExpExecArray | null;
1474
+ ````
1475
+
1476
+ Returns the internal value of the header. It can take an extra argument to parse the header's value with `RegExp.exec`,
1477
+ matcher function or internal key-value parser.
1478
+
1479
+ ```ts
1480
+ const headers = new AxiosHeaders({
1481
+ 'Content-Type': 'multipart/form-data; boundary=Asrf456BGe4h'
1482
+ });
1483
+
1484
+ console.log(headers.get('Content-Type'));
1485
+ // multipart/form-data; boundary=Asrf456BGe4h
1486
+
1487
+ console.log(headers.get('Content-Type', true)); // parse key-value pairs from a string separated with \s,;= delimiters:
1488
+ // [Object: null prototype] {
1489
+ // 'multipart/form-data': undefined,
1490
+ // boundary: 'Asrf456BGe4h'
1491
+ // }
1492
+
1493
+
1494
+ console.log(headers.get('Content-Type', (value, name, headers) => {
1495
+ return String(value).replace(/a/g, 'ZZZ');
1496
+ }));
1497
+ // multipZZZrt/form-dZZZtZZZ; boundZZZry=Asrf456BGe4h
1498
+
1499
+ console.log(headers.get('Content-Type', /boundary=(\w+)/)?.[0]);
1500
+ // boundary=Asrf456BGe4h
1501
+
1502
+ ```
1503
+
1504
+ Returns the value of the header.
1505
+
1506
+ ### AxiosHeaders#has(header, matcher?)
1507
+
1508
+ ```
1509
+ has(header: string, matcher?: AxiosHeaderMatcher): boolean;
1510
+ ```
1511
+
1512
+ Returns `true` if the header is set (has no `undefined` value).
1513
+
1514
+ ### AxiosHeaders#delete(header, matcher?)
1515
+
1516
+ ```
1517
+ delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean;
1518
+ ```
1519
+
1520
+ Returns `true` if at least one header has been removed.
1521
+
1522
+ ### AxiosHeaders#clear(matcher?)
1523
+
1524
+ ```
1525
+ clear(matcher?: AxiosHeaderMatcher): boolean;
1526
+ ```
1527
+
1528
+ Removes all headers.
1529
+ Unlike the `delete` method matcher, this optional matcher will be used to match against the header name rather than the value.
1530
+
1531
+ ```ts
1532
+ const headers = new AxiosHeaders({
1533
+ 'foo': '1',
1534
+ 'x-foo': '2',
1535
+ 'x-bar': '3',
1536
+ });
1537
+
1538
+ console.log(headers.clear(/^x-/)); // true
1539
+
1540
+ console.log(headers.toJSON()); // [Object: null prototype] { foo: '1' }
1541
+ ```
1542
+
1543
+ Returns `true` if at least one header has been cleared.
1544
+
1545
+ ### AxiosHeaders#normalize(format);
1546
+
1547
+ If the headers object was changed directly, it can have duplicates with the same name but in different cases.
1548
+ This method normalizes the headers object by combining duplicate keys into one.
1549
+ Axios uses this method internally after calling each interceptor.
1550
+ Set `format` to true for converting headers name to lowercase and capitalize the initial letters (`cOntEnt-type` => `Content-Type`)
1551
+
1552
+ ```js
1553
+ const headers = new AxiosHeaders({
1554
+ 'foo': '1',
1555
+ });
1556
+
1557
+ headers.Foo = '2';
1558
+ headers.FOO = '3';
1559
+
1560
+ console.log(headers.toJSON()); // [Object: null prototype] { foo: '1', Foo: '2', FOO: '3' }
1561
+ console.log(headers.normalize().toJSON()); // [Object: null prototype] { foo: '3' }
1562
+ console.log(headers.normalize(true).toJSON()); // [Object: null prototype] { Foo: '3' }
1563
+ ```
1564
+
1565
+ Returns `this`.
1566
+
1567
+ ### AxiosHeaders#concat(...targets)
1568
+
1569
+ ```
1570
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
1571
+ ```
1572
+
1573
+ Merges the instance with targets into a new `AxiosHeaders` instance. If the target is a string, it will be parsed as RAW HTTP headers.
1574
+
1575
+ Returns a new `AxiosHeaders` instance.
1576
+
1577
+ ### AxiosHeaders#toJSON(asStrings?)
1578
+
1579
+ ````
1580
+ toJSON(asStrings?: boolean): RawAxiosHeaders;
1581
+ ````
1582
+
1583
+ Resolve all internal headers values into a new null prototype object.
1584
+ Set `asStrings` to true to resolve arrays as a string containing all elements, separated by commas.
1585
+
1586
+ ### AxiosHeaders.from(thing?)
1587
+
1588
+ ````
1589
+ from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders;
1590
+ ````
1591
+
1592
+ Returns a new `AxiosHeaders` instance created from the raw headers passed in,
1593
+ or simply returns the given headers object if it's an `AxiosHeaders` instance.
1594
+
1595
+ ### AxiosHeaders.concat(...targets)
1596
+
1597
+ ````
1598
+ concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaders;
1599
+ ````
1600
+
1601
+ Returns a new `AxiosHeaders` instance created by merging the target objects.
1602
+
1603
+ ### Shortcuts
1604
+
1605
+ The following shortcuts are available:
1606
+
1607
+ - `setContentType`, `getContentType`, `hasContentType`
1608
+
1609
+ - `setContentLength`, `getContentLength`, `hasContentLength`
1610
+
1611
+ - `setAccept`, `getAccept`, `hasAccept`
1612
+
1613
+ - `setUserAgent`, `getUserAgent`, `hasUserAgent`
1614
+
1615
+ - `setContentEncoding`, `getContentEncoding`, `hasContentEncoding`
1616
+
1617
+ ## 🔥 Fetch adapter
1618
+
1619
+ Fetch adapter was introduced in `v1.7.0`. By default, it will be used if `xhr` and `http` adapters are not available in the build,
1620
+ or not supported by the environment.
1621
+ To use it by default, it must be selected explicitly:
1622
+
1623
+ ```js
1624
+ const {data} = axios.get(url, {
1625
+ adapter: 'fetch' // by default ['xhr', 'http', 'fetch']
1626
+ })
1627
+ ```
1628
+
1629
+ You can create a separate instance for this:
1630
+
1631
+ ```js
1632
+ const fetchAxios = axios.create({
1633
+ adapter: 'fetch'
1634
+ });
1635
+
1636
+ const {data} = fetchAxios.get(url);
1637
+ ```
1638
+
1639
+ The adapter supports the same functionality as `xhr` adapter, **including upload and download progress capturing**.
1640
+ Also, it supports additional response types such as `stream` and `formdata` (if supported by the environment).
1641
+
1642
+ ## Semver
1643
+
1644
+ Until axios reaches a `1.0` release, breaking changes will be released with a new minor version. For example `0.5.1`, and `0.5.4` will have the same API, but `0.6.0` will have breaking changes.
1645
+
1646
+ ## Promises
1647
+
1648
+ axios depends on a native ES6 Promise implementation to be [supported](https://caniuse.com/promises).
1649
+ If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
1650
+
1651
+ ## TypeScript
1652
+
1653
+ axios includes [TypeScript](https://typescriptlang.org) definitions and a type guard for axios errors.
1654
+
1655
+ ```typescript
1656
+ let user: User = null;
1657
+ try {
1658
+ const { data } = await axios.get('/user?ID=12345');
1659
+ user = data.userDetails;
1660
+ } catch (error) {
1661
+ if (axios.isAxiosError(error)) {
1662
+ handleAxiosError(error);
1663
+ } else {
1664
+ handleUnexpectedError(error);
1665
+ }
1666
+ }
1667
+ ```
1668
+
1669
+ Because axios dual publishes with an ESM default export and a CJS `module.exports`, there are some caveats.
1670
+ The recommended setting is to use `"moduleResolution": "node16"` (this is implied by `"module": "node16"`). Note that this requires TypeScript 4.7 or greater.
1671
+ If use ESM, your settings should be fine.
1672
+ If you compile TypeScript to CJS and you can’t use `"moduleResolution": "node 16"`, you have to enable `esModuleInterop`.
1673
+ If you use TypeScript to type check CJS JavaScript code, your only option is to use `"moduleResolution": "node16"`.
1674
+
1675
+ ## Online one-click setup
1676
+
1677
+ You can use Gitpod, an online IDE(which is free for Open Source) for contributing or running the examples online.
1678
+
1679
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/axios/axios/blob/main/examples/server.js)
1680
+
1681
+
1682
+ ## Resources
1683
+
1684
+ * [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
1685
+ * [Ecosystem](https://github.com/axios/axios/blob/v1.x/ECOSYSTEM.md)
1686
+ * [Contributing Guide](https://github.com/axios/axios/blob/v1.x/CONTRIBUTING.md)
1687
+ * [Code of Conduct](https://github.com/axios/axios/blob/v1.x/CODE_OF_CONDUCT.md)
1688
+
1689
+ ## Credits
1690
+
1691
+ axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [AngularJS](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of AngularJS.
1692
+
1693
+ ## License
1694
+
1695
+ [MIT](LICENSE)