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

Merge pull request #671 from 38elements/adapter

Fixing docs for adapters
This commit is contained in:
Nick Uraltsev
2017-03-01 22:46:02 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ These are the available config options for making requests. Only the `url` is re
withCredentials: false, // default withCredentials: false, // default
// `adapter` allows custom handling of requests which makes testing easier. // `adapter` allows custom handling of requests which makes testing easier.
// Return a promise and supply a valid response (see [response docs](#response-api)). // Return a promise and supply a valid response (see [this](https://github.com/mzabriskie/axios/blob/master/lib/adapters/README.md) for details).
adapter: function (config) { adapter: function (config) {
/* ... */ /* ... */
}, },
+1 -1
View File
@@ -7,7 +7,7 @@ The modules under `adapters/` are modules that handle dispatching a request and
```js ```js
var settle = require('./../core/settle'); var settle = require('./../core/settle');
module.exports myAdapter(config) { module.exports = function myAdapter(config) {
// At this point: // At this point:
// - config has been merged with defaults // - config has been merged with defaults
// - request transformers have already run // - request transformers have already run