NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view in github
Search
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"http"
External module "http"
Globals
"http"
Http
Response
Encoding
Http
Content
Http
Request
Options
Http
Response
Headers
get
Binary
get
File
get
Image
getJSON
get
String
request
Index
Enumerations
Http
Response
Encoding
Interfaces
Http
Content
Http
Request
Options
Http
Response
Type aliases
Headers
Functions
get
Binary
get
File
get
Image
getJSON
get
String
request
Type aliases
Headers
Headers
:
object
Type declaration
[
key:
string
]:
string
|
string[]
Functions
get
Binary
get
Binary
(
url
:
string
)
:
Promise
<
ArrayBuffer
>
get
Binary
(
options
:
HttpRequestOptions
)
:
Promise
<
ArrayBuffer
>
Parameters
url:
string
Returns
Promise
<
ArrayBuffer
>
Parameters
options:
HttpRequestOptions
Returns
Promise
<
ArrayBuffer
>
get
File
get
File
(
url
:
string
, destinationFilePath
?:
string
)
:
Promise
<
File
>
get
File
(
options
:
HttpRequestOptions
, destinationFilePath
?:
string
)
:
Promise
<
File
>
Parameters
url:
string
Optional
destinationFilePath:
string
Returns
Promise
<
File
>
Parameters
options:
HttpRequestOptions
Optional
destinationFilePath:
string
Returns
Promise
<
File
>
get
Image
get
Image
(
url
:
string
)
:
Promise
<
ImageSource
>
get
Image
(
options
:
HttpRequestOptions
)
:
Promise
<
ImageSource
>
Parameters
url:
string
Returns
Promise
<
ImageSource
>
Parameters
options:
HttpRequestOptions
Returns
Promise
<
ImageSource
>
getJSON
getJSON<T>
(
url
:
string
)
:
Promise
<
T
>
getJSON<T>
(
options
:
HttpRequestOptions
)
:
Promise
<
T
>
Type parameters
T
Parameters
url:
string
Returns
Promise
<
T
>
Type parameters
T
Parameters
options:
HttpRequestOptions
Returns
Promise
<
T
>
get
String
get
String
(
url
:
string
)
:
Promise
<
string
>
get
String
(
options
:
HttpRequestOptions
)
:
Promise
<
string
>
Parameters
url:
string
Returns
Promise
<
string
>
Parameters
options:
HttpRequestOptions
Returns
Promise
<
string
>
request
request
(
options
:
HttpRequestOptions
)
:
Promise
<
HttpResponse
>
Parameters
options:
HttpRequestOptions
Returns
Promise
<
HttpResponse
>
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
🐛 Debug your mobile network traffic with Fiddler! Try it on
iOS
or
Android