mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
docs(core/Axios)
This commit is contained in:
@@ -13,6 +13,8 @@ var validators = validator.validators;
|
|||||||
* Create a new instance of Axios
|
* Create a new instance of Axios
|
||||||
*
|
*
|
||||||
* @param {Object} instanceConfig The default config for the instance
|
* @param {Object} instanceConfig The default config for the instance
|
||||||
|
*
|
||||||
|
* @return {Axios} A new instance of Axios
|
||||||
*/
|
*/
|
||||||
function Axios(instanceConfig) {
|
function Axios(instanceConfig) {
|
||||||
this.defaults = instanceConfig;
|
this.defaults = instanceConfig;
|
||||||
@@ -27,6 +29,8 @@ function Axios(instanceConfig) {
|
|||||||
*
|
*
|
||||||
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
||||||
* @param {?Object} config
|
* @param {?Object} config
|
||||||
|
*
|
||||||
|
* @returns {Promise} The Promise to be fulfilled
|
||||||
*/
|
*/
|
||||||
Axios.prototype.request = function request(configOrUrl, config) {
|
Axios.prototype.request = function request(configOrUrl, config) {
|
||||||
/*eslint no-param-reassign:0*/
|
/*eslint no-param-reassign:0*/
|
||||||
|
|||||||
Reference in New Issue
Block a user