INetworkModule interface
Arka uç istekleri göndermek için istemci ağ arabirimi.
Yöntemler
| send |
Zaman uyumsuz ağ "GET" istekleri için arabirim işlevi. Fetch standardına göre: https://fetch.spec.whatwg.org/ |
| send |
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
- options
- NetworkRequestOptions
- 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
- options
- NetworkRequestOptions
Döndürülenler
Promise<NetworkResponse<T>>