Dela via


DefaultHttpClient class

Extends

FetchHttpClient

Metoder

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

Ärvda metoder

sendRequest(WebResourceLike)

Metodinformation

fetch(string, CommonRequestInit)

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

Parametrar

input

string

Returer

Promise<CommonResponse>

prepareRequest(WebResourceLike)

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

Parametrar

httpRequest
WebResourceLike

Returer

Promise<Partial<RequestInit>>

processRequest(HttpOperationResponse)

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

Parametrar

operationResponse
HttpOperationResponse

Returer

Promise<void>

Ärvd metodinformation

sendRequest(WebResourceLike)

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

Parametrar

httpRequest
WebResourceLike

Returer

Ärvd från FetchHttpClient.sendRequest