HttpClient class
This class implements the API for network requests.
Methods
send |
Http Get request |
send |
Http Post request |
Method Details
sendGetRequestAsync<T>(string, NetworkRequestOptions)
Http Get request
function sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>
Parameters
- url
-
string
- options
-
NetworkRequestOptions
Returns
Promise<NetworkResponse<T>>
sendPostRequestAsync<T>(string, NetworkRequestOptions, number)
Http Post request
function sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions, cancellationToken?: number): Promise<NetworkResponse<T>>
Parameters
- url
-
string
- options
-
NetworkRequestOptions
- cancellationToken
-
number
Returns
Promise<NetworkResponse<T>>