From b9aca19cccf9fd85a05d2ae32846b5b4f25a4dc1 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 4 Apr 2023 19:07:33 +0200 Subject: Added 147 files (automated) --- .../node_modules/axios/lib/adapters/README.md | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 includes/external/addressbook/node_modules/axios/lib/adapters/README.md (limited to 'includes/external/addressbook/node_modules/axios/lib/adapters/README.md') diff --git a/includes/external/addressbook/node_modules/axios/lib/adapters/README.md b/includes/external/addressbook/node_modules/axios/lib/adapters/README.md new file mode 100644 index 0000000..68f1118 --- /dev/null +++ b/includes/external/addressbook/node_modules/axios/lib/adapters/README.md @@ -0,0 +1,37 @@ +# axios // adapters + +The modules under `adapters/` are modules that handle dispatching a request and settling a returned `Promise` once a response is received. + +## Example + +```js +var settle = require('./../core/settle'); + +module.exports = function myAdapter(config) { + // At this point: + // - config has been merged with defaults + // - request transformers have already run + // - request interceptors have already run + + // Make the request using config provided + // Upon response settle the Promise + + return new Promise(function(resolve, reject) { + + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config: config, + request: request + }; + + settle(resolve, reject, response); + + // From here: + // - response transformers will run + // - response interceptors will run + }); +} +``` -- cgit