mirror of
https://github.com/tenrok/axios.git
synced 2026-05-30 15:24:11 +03:00
Fixing document for adapter
This commit is contained in:
@@ -248,7 +248,7 @@ 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.
|
||||
// Return a promise and supply a valid response (see [response docs](#response-api)).
|
||||
// Return a promise and supply a valid response (see lib/adapters/README.md).
|
||||
adapter: function (config) {
|
||||
/* ... */
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@ The modules under `adapters/` are modules that handle dispatching a request and
|
||||
```js
|
||||
var settle = require('./../core/settle');
|
||||
|
||||
module.exports myAdapter(config) {
|
||||
module.exports = function myAdapter(config) {
|
||||
// At this point:
|
||||
// - config has been merged with defaults
|
||||
// - request transformers have already run
|
||||
|
||||
Reference in New Issue
Block a user