Namespaces
Http
Summary
References
Functions
getBinary
defined in @nativescript/core/http/index.d.ts:58
Downloads the content from the specified URL as binary and returns an ArrayBuffer.
Parameter | Default | Description |
url |
| string The URL to request from. |
Returns Promise<ArrayBuffer>
getBinary(options: HttpRequestOptions): Promise<ArrayBuffer>
defined in @nativescript/core/http/index.d.ts:64
Downloads the content from the specified URL as binary and returns an ArrayBuffer.
Parameter | Default | Description |
options |
| An object that specifies various request options. |
Returns Promise<ArrayBuffer>
getFile
getFile(url: string, destinationFilePath?: string): Promise<File>
defined in @nativescript/core/http/index.d.ts:45
Downloads the content from the specified URL and attempts to save it as file.
Parameter | Default | Description |
url |
| string The URL to request from. |
destinationFilePath |
| string Optional. The downloaded file path. |
Returns Promise<File>
getFile(options: HttpRequestOptions, destinationFilePath?: string): Promise<File>
defined in @nativescript/core/http/index.d.ts:52
Downloads the content from the specified URL and attempts to save it as file.
Parameter | Default | Description |
options |
| An object that specifies various request options. |
destinationFilePath |
| string Optional. The downloaded file path. |
Returns Promise<File>
getImage
getImage(url: string): Promise<ImageSource>
defined in @nativescript/core/http/index.d.ts:32
Downloads the content from the specified URL and attempts to decode it as an image.
Parameter | Default | Description |
url |
| string The URL to request from. |
Returns Promise<ImageSource>
getImage(options: HttpRequestOptions): Promise<ImageSource>
defined in @nativescript/core/http/index.d.ts:38
Downloads the content from the specified URL and attempts to decode it as an image.
Parameter | Default | Description |
options |
| An object that specifies various request options. |
Returns Promise<ImageSource>
getJSON
defined in @nativescript/core/http/index.d.ts:20
Downloads the content from the specified URL as a string and returns its JSON.parse representation.
Parameter | Default | Description |
url |
| string The URL to request from. |
Returns Promise<T>
getJSON<T>(options: HttpRequestOptions): Promise<T>
defined in @nativescript/core/http/index.d.ts:26
Downloads the content from the specified URL as a string and returns its JSON.parse representation.
Parameter | Default | Description |
options |
| An object that specifies various request options. |
Returns Promise<T>
getString
defined in @nativescript/core/http/index.d.ts:8
Downloads the content from the specified URL as a string.
Parameter | Default | Description |
url |
| string The URL to request from. |
Returns Promise<string>
getString(options: HttpRequestOptions): Promise<string>
defined in @nativescript/core/http/index.d.ts:14
Downloads the content from the specified URL as a string.
Parameter | Default | Description |
options |
| An object that specifies various request options. |
Returns Promise<string>
request
request(options: HttpRequestOptions): Promise<HttpResponse>
defined in @nativescript/core/http/index.d.ts:70
Makes a generic http request using the provided options and returns a HttpResponse Object.
Parameter | Default | Description |
options |
| An object that specifies various request options. |
Returns Promise<HttpResponse>
- Previous
- GridUnitType
- Next
- IOSHelper