共用方式為


DefaultHttpClient class

Extends

FetchHttpClient

方法

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

繼承的方法

sendRequest(WebResourceLike)

方法詳細資料

fetch(string, CommonRequestInit)

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

參數

input

string

傳回

Promise<CommonResponse>

prepareRequest(WebResourceLike)

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

參數

httpRequest
WebResourceLike

傳回

Promise<Partial<RequestInit>>

processRequest(HttpOperationResponse)

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

參數

operationResponse
HttpOperationResponse

傳回

Promise<void>

繼承的方法的詳細資料

sendRequest(WebResourceLike)

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

參數

httpRequest
WebResourceLike

傳回

繼承自 FetchHttpClient.sendRequest