INetworkModule interface

Clientnetwerkinterface voor het verzenden van back-endaanvragen.

Methoden

sendGetRequestAsync<T>(string, NetworkRequestOptions, number)

Interfacefunctie voor Asynchrone GET-aanvragen voor het asynchrone netwerk. Op basis van de fetch-standaard: https://fetch.spec.whatwg.org/

sendPostRequestAsync<T>(string, NetworkRequestOptions)

Interfacefunctie voor asynchrone POST-aanvragen voor het asynchrone netwerk. Op basis van de fetch-standaard: https://fetch.spec.whatwg.org/

Methodedetails

sendGetRequestAsync<T>(string, NetworkRequestOptions, number)

Interfacefunctie voor Asynchrone GET-aanvragen voor het asynchrone netwerk. Op basis van de fetch-standaard: https://fetch.spec.whatwg.org/

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

Parameters

url

string

timeout

number

Retouren

Promise<NetworkResponse<T>>

sendPostRequestAsync<T>(string, NetworkRequestOptions)

Interfacefunctie voor asynchrone POST-aanvragen voor het asynchrone netwerk. Op basis van de fetch-standaard: https://fetch.spec.whatwg.org/

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

Parameters

url

string

Retouren

Promise<NetworkResponse<T>>