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

177 Commits

Author SHA1 Message Date
Stephan Schneider 73cab975f0 typings: allow custom return types
response interceptor might change the type from AxiosResponse to anything they like
2018-06-18 10:48:29 +02:00
Martti Laine 961ecd129c Correctly catch exception in http test (#1475) 2018-04-11 09:23:01 -06:00
Nick Uraltsev ec97c686ef Merge pull request #1395 from codeclown/instance-options
Fixing #385 - Keep defaults local to instance
2018-04-10 15:28:12 -07:00
Martti Laine 143bbbe1b9 Spec for mergeConfig, finalize logic 2018-04-07 15:54:56 +02:00
Martti Laine 506d4e8941 Unit tests for deepMerge 2018-04-03 22:19:38 +02:00
Justin Beckwith c65065ac0f capture errors on request data streams 2018-03-15 22:12:42 -07:00
Andrew Scott f9373e96f2 Added tests for additional type parameters 2018-03-07 22:17:44 -08:00
mattridley 762044e453 Fixing #537 Rejecting promise if request is cancelled by the browser 2018-03-05 16:11:55 +00:00
Martti Laine 0445d6c39e Merge branch 'master' into instance-options 2018-03-02 12:32:47 +02:00
Martti Laine 5bfd2ea9f6 Fixing #385 - Keep defaults local to instance 2018-03-02 12:31:15 +02:00
Emily Morehouse 4ea77b70b7 Follow up to #1070:
- Adding information in README for socketPath when used with a proxy
- Adding an HTTP test for socketPath option
2018-02-16 17:18:58 -07:00
Evan Shortiss d07e648c30 Fixing type definitions so AxiosInstance can be invoked 2017-12-20 21:45:48 -08:00
Nick Uraltsev 7133141cb9 Merge pull request #1061 from d-fischer/ts-generic-response
Update TypeScript typings with generic type parameters
2017-10-20 07:16:23 -07:00
Nick Uraltsev 26b06391f8 Update links 2017-09-28 21:09:47 -07:00
Daniel Fischer b0dccc6f16 Updated TypeScript typings with generic type parameters for request methods & AxiosResponse 2017-08-29 20:53:49 +02:00
Julien Roncaglia 07a7b7c84c Adding a way to disable all proxy processing (#691)
* Adding a way to disable all proxy processing

When the proxy field in configuration is === false all proxy processing is
disabled. This specifically disable the 'http_proxy' environment variable
handling.

Fixes #635
Related to #434

* Change readme wording

From review comment on PR (#691)
2017-08-14 13:38:44 +02:00
Tyler Brown fb08e95603 Duplicate header handling (#874)
* Update parseHeaders to match node http behavior

Node ignores duplicate entries for certain HTTP headers.

It also always converts the `set-cookie` header into an array.

* add tests for new duplicate header handling

* clarify comment
2017-08-12 14:58:10 +02:00
Haven 2b8562694e Fixing baseURL not working in interceptors (#950)
* Fixing baseURL not working in interceptors

* add test for  modify base URL in request interceptor
2017-08-12 14:15:27 +02:00
杨春旭 e4e32120ce Convert the method parameter to lowercase 2017-05-31 22:53:11 +08:00
Rubén Norte e0d59eb29b Adding failing tests that verify errors contain the request 2017-04-08 21:43:04 +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 e5beab045c Adding test checking the request in axios response is the last in a redirect 2017-04-08 12:45:54 +02:00
Nick Uraltsev 2fe95621b0 Merge pull request #461 from theikkila/master
Add OPTIONS-method as a shortcut
2017-03-26 21:06:24 -07:00
Nick Uraltsev 3704d57ed4 Removing Promise from axios typings in favor of built-in type declarations 2017-03-14 19:23:05 -07:00
Nick Uraltsev 6d7e6fa222 Merge pull request #670 from 38elements/test
Updating test for adapter
2017-03-01 22:38:26 -08:00
Nick Uraltsev 36d97e525d Fixing broken test 2017-03-01 20:40:55 -08:00
38elements f034c56466 Updating test for adapter 2017-01-30 13:49:50 +09:00
Lochlan Bunn fe7d09bb08 Fixing combineURLs to support an empty relativeURL (#581)
* Fixing combineURLs to support an empty relativeURL

When combining the base and relative URLs, we should forego force
appending a slash to the base when the relative URL is empty.
This leads to a semantic url.

* Fixing combineURLs, allowing single slash relatives
2016-12-07 21:23:45 -08:00
Nick Uraltsev 6d0e19343a Fixing bug with custom intances and global defaults 2016-11-26 18:17:21 -08:00
Nick Uraltsev d963368960 Adding get, head, and delete to defaults.headers 2016-10-29 22:57:53 -07:00
Nick Uraltsev 46a9639ef2 Fixing sporadically failing tests 2016-10-29 21:58:06 -07:00
Nick Uraltsev 3ddeae60e5 Getting rid of TypeScript output files 2016-10-24 18:24:36 -07:00
Marc Mignonsin df6d3ce6cf Support proxy auth (#483)
* Adding proxy auth
2016-10-19 11:02:42 +02:00
Nick Uraltsev 3fcf54ff36 Fixing issue with calling cancel after response has been received 2016-10-17 18:20:13 -07:00
Teemu Heikkilä 2e0adc1cae Add OPTIONS-method as a shortcut 2016-09-29 18:54:17 +03:00
Nick Uraltsev 216e2a6787 Adding axios.isCancel method 2016-09-21 18:47:37 -07:00
Nick Uraltsev 2033ef3ad0 Adding TypeScript definitions for cancel tokens 2016-09-17 12:49:14 -07:00
Nick Uraltsev 72dd897bb5 Adding cancellation support 2016-09-17 11:52:56 -07:00
Nick Uraltsev df50698d5a Merge branch 'master' into cancel 2016-09-15 21:09:29 -07:00
Nick Uraltsev b2bc3354ac Adding Cancel and CancelToken classes 2016-09-15 21:06:32 -07:00
Rubén Norte b8f6f5049c Fixing forEach test 2016-09-12 20:51:23 +02:00
Tony L. Kerz 077153a0a7 [for-each] has-own-prop issue node 2016-09-11 09:15:22 -04:00
Nick Uraltsev 20666942d6 Adding proxy to TypeScript definitions 2016-08-24 15:48:14 -07:00
Nick Uraltsev 65ffdaefe8 Fixing build failure 2016-08-24 15:42:03 -07:00
Hubert Boma Manilla 93ae90ae6e Adding support for http_proxy and https_proxy environment variables 2016-08-24 09:05:26 -07:00
Nick Uraltsev 96d7ac2a0c Replacing progress with onUploadProgress and onDownloadProgress in TypeScript definitions 2016-08-23 18:29:25 -07:00
Dylan Lundy 63f41b53aa Splitting progress event handlers into upload and download handlers 2016-08-22 21:52:59 -07:00
Nick Uraltsev 0dfd53f151 Merging master 2016-08-18 20:34:23 -07:00
Nick Uraltsev 2325216239 Updating TypeScript definition tests 2016-08-18 20:01:54 -07:00