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

183 Commits

Author SHA1 Message Date
Kamil Posiadała c4300a88cf Adding support for URLSearchParams in node (#1900)
* Adding support for URLSearchParams in node

* Remove un-needed code

* Update utils.js

* Make changes as suggested

Co-authored-by: Kamil Posiadala <kamil.posiadala@codecentric.de>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-06-25 19:06:00 +02:00
Frostack bed6783452 add table of content (preview) (#3050)
* add toc (preview)

* remove toc in toc

Signed-off-by: Moni <usmoni@gmail.com>

* fix sublinks

* fix indentation

* remove redundant table links

* update caps and indent

* remove axios

Co-authored-by: Moni <usmoni@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-06-25 18:41:10 +02:00
jeffjing ee46dff3ef docs(): Detailed config options environment. (#2088)
* docs(): Detailed config options environment.

* Update README.md

Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-29 19:08:27 +02:00
Taegyeoung Oh d35b5b5902 Remove axios.all() and axios.spread() from Readme.md (#2727)
* Updating Readme.md
- remove axios.all(), axios.spread()

* Updating Readme.md
- replace example
- axios.all() -> Promise.all()
- axios.spread(function (acct, perms)) -> function (acct, perms)
- add deprecated mark

* Update README.md

Make changes after review

Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-27 19:43:08 +02:00
marcinx 6d36dbe7b7 Update README.md (#2887)
Small change to the data attribute doc of the config. A request body can also be set for DELETE methods but this wasn't mentioned in the documentation (it only mentioned POST, PUT and PATCH). Took my some 10-20 minutes until I realized that I don't need to manipulate the request body with transformRequest in the case of DELETE.

Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-27 19:26:13 +02:00
Samina Fu 021e741aa1 Add CDNJS version badge in README.md (#878)
This badge will show the version on CDNJS!

Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-22 16:09:09 +02:00
Jay fd57956a7e Documentation update to clear up ambiguity in code examples (#2928)
* Made a adjustment to the documenation to clear up any ambiguity around the use of "fs". This should help clear up that the code examples with "fs" cannot be used on the client side.

Co-authored-by: Jay <jason.saayman@basebone.com>
2020-05-05 13:44:07 +02:00
hexaez 16b5718954 Update README.md about validateStatus (#2912)
Rewrote the comment from "Reject only if the status code is greater than or equal to 500" to "Resolve only if the status code is less than 500"
2020-04-22 15:59:26 +02:00
Remco Haszing 5e0fb5fc99 Updating documentation for usage form-data (#2805)
Closes #2049

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-04-05 18:01:38 +08:00
Spencer von der Ohe 42eb9dfabc Adding option to disable automatic decompression (#2661)
* Adding ability to disable auto decompression

* Updating decompress documentation in README

* Fixing test\unit\adapters\http.js lint errors

* Adding test for disabling auto decompression

* Removing changes that fixed lint errors in tests

* Removing formating change to unit test

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-03-06 22:01:58 +08:00
Gustavo López 6642ca9aa1 Add independent maxBodyLength option (#2781)
* Add independent option to set the maximum size of the request body

* Remove maxBodyLength check

* Update README

* Assert for error code and message
2020-03-06 21:55:19 +08:00
Alexandru Ungureanu 67e560da10 Added Response header access instructions (#1901)
* Added Response header access instructions

* Added note about using bracket notation
2020-02-26 19:03:20 +08:00
Ian Wijma b139abfc36 Add onUploadProgress and onDownloadProgress are browser only (#2763)
Saw in #928 and #1966 that `onUploadProgress` and `onDownloadProgress` only work in the browser and was missing that from the README.

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-02-26 10:28:49 +08:00
Jimmy Liao 3d6cafb3f7 Update ' sign to ` in proxy spec (#2778) 2020-02-25 23:05:51 +08:00
Lukas Drgon 2cf6ae4608 Adding jsDelivr link in README (#1110)
* Adding jsDelivr link

* Add SRI

* Remove SRI

Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>
Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-02-15 20:48:16 +08:00
Xianming Zhong 7df84a7ff7 Revert finally as then (#2683)
Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>
2020-01-22 12:18:22 -08:00
Yasu Flores 0cc22c2f42 Fix badge, use master branch (#2538) 2019-11-15 19:32:37 -08:00
Harshit Singh fa68fd30c3 Update README.md (#2504) 2019-11-03 18:30:49 -08:00
Yasu Flores ccca5e0e21 Add error toJSON example (#2466) 2019-10-15 22:20:56 -03:00
Maskedman99 4f189ec80c Add license badge (#2446)
MIT License badge added in README.md file
2019-10-04 15:47:49 +02:00
Jihwan Oh 88dbb82d77 Fix word 'sintaxe' to 'syntax' in README.md (#2432)
- translate 'sintaxe' word from portuguese to english
2019-09-25 21:18:44 -03:00
Ahmed Tarek d74385f1c8 🐛Fix request finally documentation in README (#2189) 2019-09-13 10:19:43 -03:00
Vamp e3a7116f14 upadating README: notes on CommonJS autocomplete (#2256)
closes #2226. add note on how to gain typings / autocomplete / intellisense when using CommonJS (`require()`) imports
2019-09-13 09:28:14 -03:00
Lucas 488a4598a3 Sintaxe alternative to send data into the body (#2317) 2019-09-13 09:19:16 -03:00
James George f7e2a995d6 docs: minor tweak (#2404)
made the license section link up to the respective file.
2019-09-13 09:10:55 -03:00
Sagar Acharya f5704fce71 Update response interceptor docs (#2399) 2019-09-12 22:30:36 -03: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
Michael Foss b9931e0a95 Fix grammar in README.md (#2271) 2019-09-06 12:42:10 -03:00
Denis Sikuler f0f68afb61 Fix a typo in README (#2384) 2019-09-06 09:55:06 -03:00
xlaguna f28ff933e4 Add information about auth parameter to README (#2166) 2019-05-28 10:57:59 -06:00
Daniela Borges Matos de Carvalho 5250e6e168 Add DELETE to list of methods that allow data as a config option (#2169) 2019-05-28 10:57:09 -06:00
Victor Hermes 92d231387f Update README.md - Add instructions for installing with yarn (#2036) 2019-05-07 16:17:16 -04:00
Josh McCarty ddcc2e4bc0 Fixing spacing for README.md (#2066) 2019-05-07 16:16:14 -04:00
Omar Cai 48c43d5240 Update README.md. - Change .then to .finally in example code (#2090) 2019-05-07 16:01:44 -04:00
Tyler Breisacher b7a9744518 Clarify what values responseType can have in Node (#2121)
It seems that `responseType: 'blob'` doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browser
2019-05-07 15:26:33 -04:00
Dmitriy Eroshenko 71032ab5bd Update README.md. - Add Querystring library note (#1896)
* Update README.md. Querystring libraries note

* Typo in README.md

Co-Authored-By: airs0urce <airs0urce0@gmail.com>

* Update README.md

Co-Authored-By: airs0urce <airs0urce0@gmail.com>
2019-02-03 21:16:37 -07:00
Ali Servet Donmez a74ab87df2 Consistent coding style (#1787) 2018-09-17 16:19:34 +02:00
Ben Standefer 9005a54a8b Clarify in README that default timeout is 0 (no timeout) (#1750)
Clarify in README that default timeout is 0 (no timeout)
2018-08-22 22:10:40 -06:00
Anthony Gauthier 4f98acc578 Add getUri method (#1712)
* Added getUri method

* Removed usage of "url"

* added method to README
2018-08-07 11:52:30 -06:00
Chance Dickson 38de25257c Adding support for no_proxy env variable (#1693)
* Adding support for no_proxy env variable

* Adds support for the no_proxy environment variable commonly available
  with programs supporting the http_proxy/https_proxy environment
  variables.
* Adds tests to test the no_proxy environment variable.

* Adding documentation for the proxy env variables

* Adds documentation to README.md for the supported, conventional
  http_proxy, https_proxy, and no_proxy environment variables.
2018-08-07 11:52:04 -06:00
Steven b9f68bdf00 Add badge to display install size (#1538) 2018-08-06 23:41:21 -06:00
Nicolas Del Valle 90add808a4 Update README.md (#1709) 2018-08-06 23:19:01 -06:00
Benedikt Rötsch 0b4e70d2ba adjust README to match IE support 2018-08-06 10:07:51 +02:00
Jim Lynch ef2240a666 Update README.md (#1484)
adding in the necessary require statement (in nodejs).
2018-07-05 08:02:41 -07:00
Guillaume Briday d74238e151 Adding second then on axios call (#1623)
Inspired by this issue : https://github.com/axios/axios/issues/792#issuecomment-289306590
2018-07-01 20:10:04 -07:00
Justin Beckwith 8e3b50c564 docs: es6ify the docs a little (#1461) 2018-04-08 00:18:56 -07:00
Justin Beckwith 7b11cc7181 docs: specify maxContentLength is in bytes (#1463) 2018-04-08 00:18:30 -07:00
Lim Jing Rong cb89fae28f docs: Added ES6 example in README (#1091)
The alternative way I added is more common and requested, as seen from issues
#362 , #350. Should be helpful for the beginners ( I was personally stuck for a bit too )
2018-04-06 20:52:06 -07:00
Justin Beckwith 88c24d85ee docs: clarify config order of precedence 2018-04-06 11:38:58 -07:00
Nick Uraltsev 9a6abd789f Merge pull request #869 from johntron/master
Adds option to specify character set in responses (with http adapter)
2018-03-10 09:13:04 -08:00