Methods
- 
    <inner> createInstance( [options])
- 
    
    create a unique axios instance based on the options passed Parameters:Name Type Argument Default Description optionsObject <optional> 
 {} axios options to pass to the instance when created Returns:- Type
- AxiosInstance
 Exampleimport { createInstance } from 'arco'; const ajaxInstance = createInstance({ baseURL: 'http://foo.com' });
- 
    <inner> del(url [, config])
- 
    
    perform DELETE call via AJAX Parameters:Name Type Argument Description urlstring URL to submit DELETE to configObject <optional> 
 custom configuration options for specific call Returns:- Type
- Promise
 Exampleimport { del } from 'arco'; const response = del('/foo/1234');
- 
    <inner> get(url [, config])
- 
    
    perform GET call via AJAX Parameters:Name Type Argument Description urlstring URL to submit GET to configObject <optional> 
 custom configuration options for specific call Returns:- Type
- Promise
 Exampleimport { get } from 'arco'; const response = get('/foo/1234');
- 
    <inner> head(url [, config])
- 
    
    perform HEAD call via AJAX Parameters:Name Type Argument Description urlstring URL to submit HEAD to configObject <optional> 
 custom configuration options for specific call Returns:- Type
- Promise
 Exampleimport { head } from 'arco'; const response = head('/foo');
- 
    <inner> patch(url [, data] [, config])
- 
    
    perform PATCH call via AJAX Parameters:Name Type Argument Description urlstring URL to submit PATCH to dataObject <optional> 
 data to include in the request body on the call configObject <optional> 
 custom configuration options for specific call Returns:- Type
- Promise
 Exampleimport { patch } from 'arco'; const response = patch('/foo/123');
- 
    <inner> post(url [, data] [, config])
- 
    
    perform POST call via AJAX Parameters:Name Type Argument Description urlstring URL to submit POST to dataObject <optional> 
 data to include in the request body on the call configObject <optional> 
 custom configuration options for specific call Returns:- Type
- Promise
 Exampleimport { post } from 'arco'; const response = post('/foo/123', { bar: 'baz' });
- 
    <inner> put(url [, data] [, config])
- 
    
    perform PUT call via AJAX Parameters:Name Type Argument Description urlstring URL to submit PUT to dataObject <optional> 
 data to include in the request body on the call configObject <optional> 
 custom configuration options for specific call Returns:- Type
- Promise
 Exampleimport { put } from 'arco'; const response = put('/foo/123', { bar: 'foo' });
- 
    <inner> setDefaults( [options])
- 
    
    set the defaults for the axios instance Parameters:Name Type Argument Default Description optionsObject <optional> 
 {} PropertiesName Type Argument Description baseURLstring <optional> 
 base URL for all axios calls headersObject <optional> 
 headers to add to all axios calls Returns:- Type
- Axios
 Exampleimport { setDefaults } from 'arco'; setDefaults({ baseURL: 'http://foo.com', headers: { 'X-API-Key': 'bar' } });