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
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
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
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
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
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
Returns Promise<HttpResponse>
- Previous
- GridUnitType
- Next
- IOSHelper