> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# httpProvider

> httpProvider

# httpProvider

## 函式

| 函式 | 描述 |
| - | - |
| [HCGetHttpCallPerformFunction](/zh-TW/reference/live/httpclient/httpprovider/functions/hcgethttpcallperformfunction) | 傳回目前的 HCCallPerformFunction 回呼，此回呼會在目前平台上實作 HTTP 執行函式。 |
| [HCGetWebSocketFunctions](/zh-TW/reference/live/httpclient/httpprovider/functions/hcgetwebsocketfunctions) | 取得實作 WebSocket 函式的函式。 |
| [HCHttpCallGetContext](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallgetcontext) | 取得附加至此呼叫物件的內容指標。 |
| [HCHttpCallRequestGetHeader](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheader) | 取得 HTTP 呼叫中指定標頭名稱的要求標頭。 |
| [HCHttpCallRequestGetHeaderAtIndex](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex) | 取得 HTTP 呼叫中位於特定以零起始之索引的要求標頭。 |
| [HCHttpCallRequestGetNumHeaders](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetnumheaders) | 取得 HTTP 呼叫中的要求標頭數目。 |
| [HCHttpCallRequestGetRequestBodyBytes](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodybytes) | 取得 HTTP 呼叫的要求本文位元組。 |
| [HCHttpCallRequestGetRequestBodyReadFunction](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodyreadfunction) | 取得 HTTP 呼叫用來讀取要求本文的函式 |
| [HCHttpCallRequestGetRequestBodyString](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodystring) | 取得 HTTP 呼叫的要求本文位元組。 |
| [HCHttpCallRequestGetRetryAllowed](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretryallowed) | 取得此 HTTP 呼叫是否允許重試。 |
| [HCHttpCallRequestGetRetryCacheId](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrycacheid) | 取得此 REST 端點的識別碼，用於快取 Retry-After 標頭以快速失敗。 |
| [HCHttpCallRequestGetRetryDelay](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay) | 取得 HTTP 重試延遲 (以秒為單位)。預設和最小延遲為 2 秒。 |
| [HCHttpCallRequestGetTimeout](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeout) | 取得此 HTTP 呼叫的逾時。 |
| [HCHttpCallRequestGetTimeoutWindow](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeoutwindow) | 設定 HTTP 逾時時間範圍 (以秒為單位)。 |
| [HCHttpCallRequestGetUrl](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgeturl) | 取得 HTTP 呼叫的 URL 和方法。 |
| [HCHttpCallResponseAppendResponseBodyBytes](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponseappendresponsebodybytes) | 附加至 HTTP 呼叫的回應本文位元組緩衝區。如果先前已使用 HCHttpCallResponseSetResponseBodyWriteFunction 在此呼叫控制代碼上設定自訂寫入回呼，此作業將會失敗，因為兩者互斥。 |
| [HCHttpCallResponseSetHeader](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheader) | 設定 HTTP 呼叫的回應標頭。 |
| [HCHttpCallResponseSetHeaderWithLength](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheaderwithlength) | 設定 HTTP 呼叫的回應標頭。 |
| [HCHttpCallResponseSetNetworkErrorCode](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode) | 設定 HTTP 呼叫的網路錯誤碼。 |
| [HCHttpCallResponseSetPlatformNetworkErrorMessage](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage) | 設定 HTTP 呼叫的平台網路錯誤訊息。 |
| [HCHttpCallResponseSetResponseBodyBytes](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes) | 設定 HTTP 呼叫的回應本文位元組緩衝區。如果先前已使用 HCHttpCallResponseSetResponseBodyWriteFunction 在此呼叫控制代碼上設定自訂寫入回呼，此作業將會失敗，因為兩者互斥。 |
| [HCHttpCallResponseGetResponseBodyWriteFunction](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponsegetresponsebodywritefunction) | 取得 HTTP 呼叫用來寫入回應本文的函式。 |
| [HCHttpCallResponseSetStatusCode](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetstatuscode) | 設定 HTTP 呼叫回應的 HTTP 狀態碼。 |
| [HCHttpCallSetContext](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallsetcontext) | 設定附加至此呼叫物件的內容指標。 |
| [HCSetHttpCallPerformFunction](/zh-TW/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction) | 選擇性地允許呼叫端實作 HTTP 執行函式。 |
| [HCSetWebSocketFunctions](/zh-TW/reference/live/httpclient/httpprovider/functions/hcsetwebsocketfunctions) | 選擇性地允許呼叫端實作 WebSocket 函式。 |
| [HCWebSocketGetHeader](/zh-TW/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheader) | 取得 WebSocket 的標頭。 |
| [HCWebSocketGetHeaderAtIndex](/zh-TW/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex) | 取得 WebSocket 中位於特定以零起始之索引的標頭。 |
| [HCWebSocketGetNumHeaders](/zh-TW/reference/live/httpclient/httpprovider/functions/hcwebsocketgetnumheaders) | 取得 WebSocket 中的標頭數目。 |
| [HCWebSocketGetProxyUri](/zh-TW/reference/live/httpclient/httpprovider/functions/hcwebsocketgetproxyuri) | 取得 WebSocket 的 Proxy URI。 |


## Related topics

- [HttpClient API 參考](/zh-TW/reference/live/httpclient/atoc-httpclient.md)
- [HttpClient API 参考](/zh-CN/reference/live/httpclient/atoc-httpclient.md)
- [HttpClient API reference](/ko/reference/live/httpclient/atoc-httpclient.md)
- [HCHttpCallGetContext](/fr-CA/reference/live/httpclient/httpprovider/functions/hchttpcallgetcontext.md)
- [HCHttpCallSetContext](/fr-CA/reference/live/httpclient/httpprovider/functions/hchttpcallsetcontext.md)
