Methods
(async, static) openDataURL(url) → {Promise.<Buffer>}
Performs a GET to an URL and returns a promise to its body as a Buffer
Parameters:
Name | Type | Description |
---|---|---|
url |
string | URL of the desired content to GET |
- Source:
Returns:
Buffer with the content of the body from the HTTP response
- Type
- Promise.<Buffer>
(async, static) request(options) → {Promise.<string>}
Performs a request and returns a promise to the body as a string
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Object with the parameters to the request
Properties
|
- Source:
Returns:
- Type
- Promise.<string>