DefaultHttpClient class
- Extends
-
FetchHttpClient
方法
fetch(string, Common |
|
prepare |
|
process |
繼承的方法
send |
方法詳細資料
fetch(string, CommonRequestInit)
function fetch(input: string, init?: CommonRequestInit): Promise<CommonResponse>
參數
- input
-
string
- init
- CommonRequestInit
傳回
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
傳回
Promise<HttpOperationResponse>
繼承自 FetchHttpClient.sendRequest