2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

docs(core/dispatchRequest)

This commit is contained in:
Jay
2022-06-02 20:53:31 +02:00
parent 722640aeda
commit 4f4c1d3be9
+5
View File
@@ -9,6 +9,10 @@ var normalizeHeaderName = require('../helpers/normalizeHeaderName');
/**
* Throws a `CanceledError` if cancellation has been requested.
*
* @param {Object} config The config that is to be used for the request
*
* @returns {void}
*/
function throwIfCancellationRequested(config) {
if (config.cancelToken) {
@@ -24,6 +28,7 @@ function throwIfCancellationRequested(config) {
* Dispatch a request to the server using the configured adapter.
*
* @param {object} config The config that is to be used for the request
*
* @returns {Promise} The Promise to be fulfilled
*/
module.exports = function dispatchRequest(config) {