Namespaces
getImage
Call Signature
function getImage(url: string): Promise<ImageSource>;Defined in: http/index.d.ts:35
Downloads the content from the specified URL and attempts to decode it as an image.
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | The URL to request from. |
Returns
Promise<ImageSource>
Call Signature
function getImage(options: HttpRequestOptions): Promise<ImageSource>;Defined in: http/index.d.ts:41
Downloads the content from the specified URL and attempts to decode it as an image.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | HttpRequestOptions | An object that specifies various request options. |
Returns
Promise<ImageSource>