2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-20 20:00:40 +03:00

Changing adapter signature to receive config and return promises

This commit is contained in:
Rubén Norte
2016-07-09 21:30:16 +02:00
parent 8f3a4301ab
commit 157efd5615
6 changed files with 311 additions and 339 deletions
+2 -2
View File
@@ -247,8 +247,8 @@ These are the available config options for making requests. Only the `url` is re
withCredentials: false, // default
// `adapter` allows custom handling of requests which makes testing easier.
// Call `resolve` or `reject` and supply a valid response (see [response docs](#response-api)).
adapter: function (resolve, reject, config) {
// Return a promise and supply a valid response (see [response docs](#response-api)).
adapter: function (config) {
/* ... */
},