INetworkModule interface

Arka uç istekleri göndermek için istemci ağ arabirimi.

Yöntemler

sendGetRequestAsync<T>(string, NetworkRequestOptions, number)

Zaman uyumsuz ağ "GET" istekleri için arabirim işlevi. Fetch standardına göre: https://fetch.spec.whatwg.org/

sendPostRequestAsync<T>(string, NetworkRequestOptions)

Zaman uyumsuz ağ "POST" istekleri için arabirim işlevi. Fetch standardına göre: https://fetch.spec.whatwg.org/

Yöntem Ayrıntıları

sendGetRequestAsync<T>(string, NetworkRequestOptions, number)

Zaman uyumsuz ağ "GET" istekleri için arabirim işlevi. Fetch standardına göre: https://fetch.spec.whatwg.org/

function sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>

Parametreler

url

string

timeout

number

Döndürülenler

Promise<NetworkResponse<T>>

sendPostRequestAsync<T>(string, NetworkRequestOptions)

Zaman uyumsuz ağ "POST" istekleri için arabirim işlevi. Fetch standardına göre: https://fetch.spec.whatwg.org/

function sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>

Parametreler

url

string

Döndürülenler

Promise<NetworkResponse<T>>