INetworkModule interface

バックエンド要求を送信するクライアント ネットワーク インターフェイス。

メソッド

sendGetRequestAsync<T>(string, NetworkRequestOptions, number)

非同期ネットワーク "GET" 要求のインターフェイス関数。 Fetch 標準に基づく: https://fetch.spec.whatwg.org/

sendPostRequestAsync<T>(string, NetworkRequestOptions)

非同期ネットワーク "POST" 要求のインターフェイス関数。 Fetch 標準に基づく: https://fetch.spec.whatwg.org/

メソッドの詳細

sendGetRequestAsync<T>(string, NetworkRequestOptions, number)

非同期ネットワーク "GET" 要求のインターフェイス関数。 Fetch 標準に基づく: https://fetch.spec.whatwg.org/

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

パラメーター

url

string

timeout

number

返品

Promise<NetworkResponse<T>>

sendPostRequestAsync<T>(string, NetworkRequestOptions)

非同期ネットワーク "POST" 要求のインターフェイス関数。 Fetch 標準に基づく: https://fetch.spec.whatwg.org/

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

パラメーター

url

string

返品

Promise<NetworkResponse<T>>