Members
baseUrl
Get the baseUrl value.
baseUrl
Set the baseUrl value.
Methods
_fetchHttpRequest(object) → {Promise}
Provides async HTTP request with CORS supported.
Parameters:
Name | Type | Default | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object |
Object | {} | the object of request params.
Properties
|
Returns:
A promise that resolves with the result of HTTP request.
- Type
- Promise
fetchDelete(object) → {Promise}
Provides async HTTP DELETE request.
Parameters:
Name | Type | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
object |
Object | {} | the object of request params.
Properties
|
Returns:
A promise that resolves with the result of HTTP DELETE request.
- Type
- Promise
fetchGet(object) → {Promise}
Provides async HTTP GET request.
Parameters:
Name | Type | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
object |
Object | {} | the object of request params.
Properties
|
Returns:
A promise that resolves with the result of HTTP GET request.
- Type
- Promise
fetchPatch(object) → {Promise}
Provides async HTTP PATCH request.
Parameters:
Name | Type | Default | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object |
Object | {} | the object of request params.
Properties
|
Returns:
A promise that resolves with the result of HTTP PATCH request.
- Type
- Promise
fetchPost(object) → {Promise}
Provides async HTTP POST request.
Parameters:
Name | Type | Default | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object |
Object | {} | the object of request params.
Properties
|
Returns:
A promise that resolves with the result of HTTP POST request.
- Type
- Promise
fetchPut(object) → {Promise}
Provides async HTTP PUT request.
Parameters:
Name | Type | Default | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object |
Object | {} | the object of request params.
Properties
|
Returns:
A promise that resolves with the result of HTTP PUT request.
- Type
- Promise