Methods
post(body, mime, methodopt, progressInfoopt) → {Promise}
Perform an HTTP POST request, enabling progress callback notifications.
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
body |
String | The body of the POST. | ||||||||||||||
mime |
String | The mime type of the request, set in the `Content-Type` header. | ||||||||||||||
method |
String |
<optional> |
POST | The HTTP method to use with the POST logic. | ||||||||||||
progressInfo |
Object |
<optional> |
An object containing parameters to receive the progress notifications.
Properties
|
- Source:
Returns:
A Promise that, when resolved, yields the {Response} object as defined by the fetch API.
- Type
- Promise
put(body, mime, progressInfoopt) → {Promise}
Perform an HTTP PUT request, enabling progress callback notifications.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
body |
String | The body of the PUT. | |||||||||||||
mime |
String | The mime type of the request, set in the `Content-Type` header. | |||||||||||||
progressInfo |
Object |
<optional> |
An object containing parameters to receive the progress notifications.
Properties
|
- Source:
Returns:
A Promise that, when resolved, yields the {Response} object as defined by the fetch API.
- Type
- Promise