2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
Nitin Ramnani 1260ded634 fix(examples): application crashed when navigating examples in browser (#5938)
fix(examples): application crashed when navigating examples in browser (#5938)
2025-01-30 21:25:28 +02:00
kuroino721 bc03c6cbc4 chore(examples): fix module import (#6575) 2024-08-30 22:42:42 +03:00
Ng Choon Khon (CK) bfa9c30523 chore(docs): fix outdated grunt to npm scripts (#6073) 2023-11-14 21:54:58 +02:00
Ivan Barsukov 786b113a40 fix: removing multiple/trailing/leading whitespaces (#5022)
* fix: removing multiple/trailing/leading whitespaces

* Reverting changes in the dist directory

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-11-25 15:56:31 +02:00
Ikko Ashimine 179a0c80a8 Update get/index.html (#5116)
Github -> GitHub

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-10-30 19:14:27 +02:00
Dmitriy Mozgovoy bdf493cf8b Axios ES2017 (#4787)
* Added AxiosHeaders class;

* Fixed README.md href;

* Fixed a potential bug with headers normalization;

* Fixed a potential bug with headers normalization;
Refactored accessor building routine;
Refactored default transforms;
Removed `normalizeHeaderName` helper;

* Added `Content-Length` accessor;
Added missed `has` accessor to TS types;

* Added `AxiosTransformStream` class;
Added progress capturing ability for node.js environment;
Added `maxRate` option to limit the data rate in node.js environment;
Refactored event handled by `onUploadProgress` && `onDownloadProgress` listeners in browser environment;
Added progress & data rate tests for the http adapter;
Added response stream aborting test;
Added a manual progress capture test for the browser;
Updated TS types;
Added TS tests;
Refactored request abort logic for the http adapter;
Added ability to abort the response stream;

* Remove `stream/promises` & `timers/promises` modules usage in tests;

* Use `abortcontroller-polyfill`;

* Fixed AxiosTransformStream dead-lock in legacy node versions;
Fixed CancelError emitting in streams;

* Reworked AxiosTransformStream internal logic to optimize memory consumption;
Added throwing an error if the request stream was silently destroying (without error) Refers to #3966;

* Treat the destruction of the request stream as a cancellation of the request;
Fixed tests;

* Emit `progress` event in the next tick;

* Initial refactoring;

* Refactored Mocha tests to use ESM;

* Refactored Karma tests to use rollup preprocessor & ESM;
Replaced grunt with gulp;
Improved dev scripts;
Added Babel for rollup build;

* Added default commonjs package export for Node build;
Added automatic contributors list generator for package.json;

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-06-18 11:19:27 +02:00
Luca Pizzini 1de70bd130 refactor: added listen callback function (#4096)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-05-04 20:42:36 +02:00
Ben Carp 1a2ff9c3d1 multipart/form-data playground (#4465)
* adding toFormData test

* adding toFormData

* initial multipart-FormData playground

* formdata playground title

* Fix examples/postMultipartFormData/server.js to the examples/**/server.js format, and so event end runs.

Co-authored-by: Jay <jasonsaayman@gmail.com>
2022-03-15 07:53:11 +02:00
Nisar Hassan Naqvi 535d0c45c1 move the mention of gitpod to the main readme + modify gitpod description. (#2637)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2021-02-17 08:28:00 +02:00
Sven Efftinge 3f2ef030e0 Allow opening examples in Gitpod (#1958)
Co-authored-by: Emily Morehouse <emilyemorehouse@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-29 07:02:31 +02:00
Avindra Goolcharan 6a4a85c57f Doc fixes, minor examples cleanup (#2198)
* README.md COOKBOOK.md: minor fixes

 * simplify language

* ECOSYSTEM: create a few categories

* Examples: log port listening to

* upgrade bootstrap 3 -> 4 in examples

bootstrap 4 is slightly smaller then 3.2.0
so it should also help load examples faster

* categorize 0.19 items a little differently

surface user/consumer changes first
2019-09-07 09:05:26 -03:00
Nick Uraltsev 26b06391f8 Update links 2017-09-28 21:09:47 -07:00
Carlos Romel Pereira da Silva 23c4dfcf55 Update README.md 2017-04-05 12:56:59 -03:00
Igor De Paula 13bc0e032f Fix upload progress event example 2016-12-05 14:28:24 -02:00
Dylan Lundy 63f41b53aa Splitting progress event handlers into upload and download handlers 2016-08-22 21:52:59 -07:00
Nick Uraltsev 91dae3c4ad Improve error handling 2016-06-13 13:56:08 -07:00
Matt Zabriskie 5fc59a65aa Resolving merge conflicts 2016-03-05 23:56:02 -07:00
Kevin Ivan 8cce065414 Update README.md
Everyone can not clone from there.
2016-01-29 09:32:50 +01:00
mzabriskie 5eac34f1cd Fixing AMD example 2015-09-21 16:17:34 -06:00
Davis Barber 261e41644d Add 'progress' config option for monitoring progress events for uploads and downloads. 2015-08-26 17:32:19 -04:00
mzabriskie 781df7045e Updating examples 2015-04-08 13:51:14 -06:00
mzabriskie 4ad5438f61 Improving examples 2015-04-08 13:24:43 -06:00
mzabriskie 7efc095582 Adding examples 2015-02-03 01:24:38 -07:00