편집

다음을 통해 공유


HttpClient class

This class implements the API for network requests.

Methods

sendGetRequestAsync<T>(string, NetworkRequestOptions)

Http Get request

sendPostRequestAsync<T>(string, NetworkRequestOptions, number)

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>>