Condividi tramite


DefaultHttpClient class

Extends

FetchHttpClient

Metodi

fetch(string, CommonRequestInit)
prepareRequest(WebResourceLike)
processRequest(HttpOperationResponse)

Metodi ereditati

sendRequest(WebResourceLike)

Dettagli metodo

fetch(string, CommonRequestInit)

function fetch(input: string, init?: CommonRequestInit): Promise<CommonResponse>

Parametri

input

string

Restituisce

Promise<CommonResponse>

prepareRequest(WebResourceLike)

function prepareRequest(httpRequest: WebResourceLike): Promise<Partial<RequestInit>>

Parametri

httpRequest
WebResourceLike

Restituisce

Promise<Partial<RequestInit>>

processRequest(HttpOperationResponse)

function processRequest(operationResponse: HttpOperationResponse): Promise<void>

Parametri

operationResponse
HttpOperationResponse

Restituisce

Promise<void>

Dettagli dei metodi ereditati

sendRequest(WebResourceLike)

function sendRequest(httpRequest: WebResourceLike): Promise<HttpOperationResponse>

Parametri

httpRequest
WebResourceLike

Restituisce

Ereditato da FetchHttpClient.sendRequest