Compartilhar via


DefaultHttpClient class

Extends

FetchHttpClient

Métodos

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

Métodos herdados

sendRequest(WebResourceLike)

Detalhes do método

fetch(string, CommonRequestInit)

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

Parâmetros

input

string

Retornos

Promise<CommonResponse>

prepareRequest(WebResourceLike)

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

Parâmetros

httpRequest
WebResourceLike

Retornos

Promise<Partial<RequestInit>>

processRequest(HttpOperationResponse)

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

Parâmetros

operationResponse
HttpOperationResponse

Retornos

Promise<void>

Detalhes do método herdado

sendRequest(WebResourceLike)

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

Parâmetros

httpRequest
WebResourceLike

Retornos

Herdado de FetchHttpClient.sendRequest