Readonly
iosReadonly
androidGet/sets the default timeout value. It is recommended to set this on constructor.
10000
import Http from '@smartface/native/net/http';
const http = new Http({
timeout: 5000,
//...other values
});
requestFile
Sends an http request to given url and saves response file to temp directory of application. If request ends successfully onLoad callback will be called with received File object.
0.1
requestImage
Sends an http request to given url. If request ends successfully onLoad callback will be called with received UI.Image object.
0.1
requestString
Sends an http request to given url. If request ends successfully onLoad callback will be called with received string.
0.1
requestJSON
Sends an http request to given url. If request ends successfully onLoad callback will be called with received JSON object.
0.1
request
Sends an http request defined with parameters.
0.1
Optional
isMultipart: booleanUploads something. Accepts blob as type.
Generated using TypeDoc
Toggles if the instance should keep the cookies from the server. It is recommended to set this on constructor.