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

117 Commits

Author SHA1 Message Date
pbarbiero fa3c6d22f7 Decorate resolve and reject to clear timeout 2017-08-12 15:37:12 -05:00
Raymond Rutjes f1fb3de38f refactor(http): use ClientRequest "aborted" value (#966) 2017-07-10 09:50:43 +02:00
Felix Gnass c8494677bb use Buffer global in http.js
Since the http adapter is never used in the browser it's safe to use
the Buffer global and its isBuffer() method directly.
2017-05-04 23:43:59 +02:00
Rubén Norte 22ce6db383 Adding request to error objects when it is available 2017-04-08 21:44:15 +02:00
Nick Uraltsev fa582233af Merge pull request #828 from mzabriskie/feature/return-last-request-in-redirects
Return the last request made in axios response
2017-04-08 11:26:05 -07:00
Jeremy Fowler 188334439f support node buffers less than 8192 bytes (#773) 2017-04-08 13:55:34 +02:00
Rubén Norte 84d9a41850 Adding code to assign the last request to axios response 2017-04-08 12:47:20 +02:00
Marc Mignonsin df6d3ce6cf Support proxy auth (#483)
* Adding proxy auth
2016-10-19 11:02:42 +02:00
Michael McDermott 7c89704262 Default to using "http:" protocol in http adapter
Fixes #490
2016-10-18 10:59:38 -04:00
Matt Zabriskie b21a280df0 Merge pull request #491 from Jarlotee/patch-1
Fix proxy bugs
2016-10-18 08:59:19 -05:00
Nick Uraltsev 3fcf54ff36 Fixing issue with calling cancel after response has been received 2016-10-17 18:20:13 -07:00
Jared Lotti ce1ecdae7a forgot to add optional port 2016-10-17 15:24:17 -04:00
Jared Lotti 5c4ca4ccc4 fix proxy bugs 2016-10-17 15:18:18 -04:00
Nick Uraltsev 72dd897bb5 Adding cancellation support 2016-09-17 11:52:56 -07:00
Hubert Boma Manilla 93ae90ae6e Adding support for http_proxy and https_proxy environment variables 2016-08-24 09:05:26 -07:00
Christian Schuhmann 1ffcbb0369 Fixing Authorization header with basic auth
The http adapater did not remove a custom Authorization header when auth is set.
2016-08-04 08:34:07 +02:00
Rubén Norte 4c790d5a7a Replacing 'agent' option with 'httpAgent' and 'httpsAgent' 2016-07-22 21:10:58 +02:00
Rubén Norte 157efd5615 Changing adapter signature to receive config and return promises 2016-07-09 21:30:16 +02:00
Matt Zabriskie 10eb238651 Move transform response logic from adapters to dispatcher 2016-06-23 15:11:35 -06:00
Nick Uraltsev 91dae3c4ad Improve error handling 2016-06-13 13:56:08 -07:00
Matt Zabriskie 203cbc2da0 Moving settle & transformData from helpers/ -> core/ 2016-06-01 13:54:38 -06:00
Nick Uraltsev 4e7ca3dea3 Resolving conflicts and modifying http adapter to not change status code error range 2016-05-31 17:53:45 -07:00
Nick Uraltsev 94a2128549 Resolving merge conflicts 2016-05-18 19:44:21 -07:00
Nick Uraltsev fa9444e0ba Allow custom HTTP status code error ranges (#308)
Adding support for custom HTTP status code error ranges
2016-04-26 14:18:58 -06:00
dublx a04077a17d Choose between follow-redirects or core 2016-04-22 15:47:16 +01:00
Josh 716e487038 Fixing handling of compression errors 2016-04-20 01:26:45 +02:00
Nick Uraltsev d23f9d5d47 Add support for Stream 2016-04-14 17:38:35 -07:00
Nick Uraltsev 4de17bca09 Fix request path for proxied requests 2016-04-08 16:41:51 -07:00
msangui 775ca3e732 Added proxy option to http.js 2016-04-08 16:17:03 -07:00
Nick Uraltsev a913ea56c1 Merge pull request #200 from AurelioDeRosa/patch-1
Expose XHR instance
2016-03-31 20:08:58 -07:00
bomsy fefa23a8dd Adding config option to restrict based on the size of the response co… 2016-03-25 23:50:52 +00:00
Aurelio De Rosa ab361ac169 Expose XHR instance
Fixes gh-64
2016-03-06 12:25:33 +00:00
Matt Zabriskie 6d84717cba Updating dependencies 2016-03-05 23:16:16 -07:00
Andrew Crites 116f5fca88 Fixing 245:
Formatting and adding tests
2016-02-28 22:51:20 -05:00
Andrew Crites 76cb7eeba9 Fixing 245:
Parse basic auth from URL and submit with http adapter
2016-02-28 22:42:02 -05:00
Matt Zabriskie 7a16f72895 Improving logic for handling timeout in node
closes #124
2016-01-22 16:27:54 -07:00
Gary Chambers f44d9ce677 Fixing redirect behaviour 2016-01-19 14:51:14 +00:00
Matt Zabriskie 82847f737e Fixing config weirdness 2015-12-24 11:44:46 -07:00
Matt Zabriskie f28a4a8248 Using more strict eslint rules 2015-12-14 20:06:57 -07:00
Matt Zabriskie 07b177f347 Removing unwanted user/pass for auth 2015-12-11 11:39:22 -07:00
Harry Lachenmayer 19cbca0c71 Add HTTP basic authentication for Node. 2015-12-09 11:27:47 +02:00
Matt Zabriskie 433dd0d037 Merge pull request #149 from Kosta-Github/Kosta/unzip
Adding transparent decompression if `content-encoding` is set
2015-11-19 15:37:58 -07:00
Matt Zabriskie ae3adcd28b Merge branch 'master' of github.com:mzabriskie/axios 2015-11-19 15:32:55 -07:00
Matt Zabriskie 02a93330ed Resolving conflicts 2015-11-19 15:32:05 -07:00
Matt Zabriskie 2781ff650c Merge pull request #146 from skarbovskiy/master
follow redirects
2015-11-19 15:28:39 -07:00
Matt Zabriskie 3d65057d71 Making isURLSameOrigin/cookies safe to use in all envs 2015-11-19 15:18:47 -07:00
moonion 2e4c9285d7 add config.paramsSerializer to http adapter 2015-11-18 16:04:18 +02:00
Konstantin Baumann b3a4ff03e2 uncompress the response body transparently if required 2015-11-12 11:16:57 +01:00
george.skarbovskiy cf192f495e follow redirects 2015-11-06 12:56:21 +02:00
Konstantin Baumann 84a0ddecd4 http adapter: return a Buffer instead of a String in case of responseType === 'arraybuffer' 2015-10-15 17:28:38 +02:00