mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
docs(core/dispatchRequest)
This commit is contained in:
@@ -9,6 +9,10 @@ var normalizeHeaderName = require('../helpers/normalizeHeaderName');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Throws a `CanceledError` if cancellation has been requested.
|
* 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) {
|
function throwIfCancellationRequested(config) {
|
||||||
if (config.cancelToken) {
|
if (config.cancelToken) {
|
||||||
@@ -24,6 +28,7 @@ function throwIfCancellationRequested(config) {
|
|||||||
* Dispatch a request to the server using the configured adapter.
|
* Dispatch a request to the server using the configured adapter.
|
||||||
*
|
*
|
||||||
* @param {object} config The config that is to be used for the request
|
* @param {object} config The config that is to be used for the request
|
||||||
|
*
|
||||||
* @returns {Promise} The Promise to be fulfilled
|
* @returns {Promise} The Promise to be fulfilled
|
||||||
*/
|
*/
|
||||||
module.exports = function dispatchRequest(config) {
|
module.exports = function dispatchRequest(config) {
|
||||||
|
|||||||
Reference in New Issue
Block a user