Sdílet prostřednictvím


DefaultHttpClient class

Extends

FetchHttpClient

Metody

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

Zděděné metody

sendRequest(WebResourceLike)

Podrobnosti metody

fetch(string, CommonRequestInit)

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

Parametry

input

string

Návraty

Promise<CommonResponse>

prepareRequest(WebResourceLike)

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

Parametry

httpRequest
WebResourceLike

Návraty

Promise<Partial<RequestInit>>

processRequest(HttpOperationResponse)

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

Parametry

operationResponse
HttpOperationResponse

Návraty

Promise<void>

Podrobnosti zděděných metod

sendRequest(WebResourceLike)

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

Parametry

httpRequest
WebResourceLike

Návraty

Zděděno z FetchHttpClient.sendRequest