Methods
(inner) makeRequest(opts) → {http.Ajax}
- Source:
A factory for
http.Ajax
. creates Ajax request with supplied HttpRequestOptions
Parameters:
Name | Type | Description |
---|---|---|
opts |
HttpRequestOptions |
Returns:
- Type
- http.Ajax
(async, inner) sendRequest(opts) → {Promise.<any>}
- Source:
Send request asynchronously
Parameters:
Name | Type | Description |
---|---|---|
opts |
HttpRequestOptions |
Returns:
- Type
- Promise.<any>
(inner) Get(url, paramsopt) → {http.Ajax}
- Source:
Create Ajax GET request
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
String | server url | |
params |
Object |
<optional> |
query string params |
Returns:
- Type
- http.Ajax
(inner) Post(url, paramsopt)
- Source:
Create Ajax POST request
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
String | server url | |
params |
Object |
<optional> |
query string params |
(inner) Delete(url, params) → {http.Ajax}
- Source:
Create Ajax DELETE request
Parameters:
Name | Type | Description |
---|---|---|
url |
String | server url |
params |
Object | query string params |
Returns:
- Type
- http.Ajax
(inner) Put(url, params) → {Ajax}
- Source:
Create Ajax PUT request
Parameters:
Name | Type | Description |
---|---|---|
url |
String | server url |
params |
Object | query string params |
Returns:
- Type
- Ajax
(inner) Patch(url, params) → {http.Ajax}
- Source:
Create Ajax PATCH request
Parameters:
Name | Type | Description |
---|---|---|
url |
String | server url |
params |
Object | query string params |
Returns:
- Type
- http.Ajax
(inner) sendGet(opt) → {Promise.<http.Ajax>}
- Source:
Create and send GET request
Parameters:
Name | Type | Description |
---|---|---|
opt |
HttpRequestOptions |
Returns:
- Type
- Promise.<http.Ajax>
(inner) sendDelete(opt) → {Promise.<http.Ajax>}
- Source:
Create and send DELETE request
Parameters:
Name | Type | Description |
---|---|---|
opt |
HttpRequestOptions |
Returns:
- Type
- Promise.<http.Ajax>
(inner) sendPost(opt) → {Promise.<http.Ajax>}
- Source:
Create and send POST request
Parameters:
Name | Type | Description |
---|---|---|
opt |
HttpRequestOptions |
Returns:
- Type
- Promise.<http.Ajax>
(inner) sendPut(opt) → {Promise.<http.Ajax>}
- Source:
Create and send PUT request
Parameters:
Name | Type | Description |
---|---|---|
opt |
HttpRequestOptions |
Returns:
- Type
- Promise.<http.Ajax>
(inner) sendPatch(opt) → {Promise.<http.Ajax>}
- Source:
Create and send PATCH request
Parameters:
Name | Type | Description |
---|---|---|
opt |
HttpRequestOptions |
Returns:
- Type
- Promise.<http.Ajax>