> ## 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

## Functions

| Function | Description |
| - | - |
| [HCGetHttpCallPerformFunction](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcgethttpcallperformfunction.md) | 返回当前 HCCallPerformFunction 回调，该回调在当前平台上实现 HTTP perform 函数。 |
| [HCGetWebSocketFunctions](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcgetwebsocketfunctions.md) | 获取实现 WebSocket 功能的函数。 |
| [HCHttpCallGetContext](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallgetcontext.md) | 获取附加到此调用对象的上下文指针。 |
| [HCHttpCallRequestGetHeader](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheader.md) | 根据给定的标头名称获取 HTTP 调用的请求标头。 |
| [HCHttpCallRequestGetHeaderAtIndex](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex.md) | 获取 HTTP 调用中指定从零开始索引处的请求标头。 |
| [HCHttpCallRequestGetNumHeaders](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetnumheaders.md) | 获取 HTTP 调用中的请求标头数量。 |
| [HCHttpCallRequestGetRequestBodyBytes](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodybytes.md) | 获取 HTTP 调用的请求正文字节。 |
| [HCHttpCallRequestGetRequestBodyReadFunction](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodyreadfunction.md) | 获取 HTTP 调用用于读取请求正文的函数 |
| [HCHttpCallRequestGetRequestBodyString](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodystring.md) | 获取 HTTP 调用的请求正文字节。 |
| [HCHttpCallRequestGetRetryAllowed](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretryallowed.md) | 获取是否允许对此 HTTP 调用进行重试。 |
| [HCHttpCallRequestGetRetryCacheId](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrycacheid.md) | 获取此 REST 终结点的 ID 编号，用于缓存 Retry-After 标头以便快速失败。 |
| [HCHttpCallRequestGetRetryDelay](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md) | 获取以秒为单位的 HTTP 重试延迟。默认值和最小值为 2 秒。 |
| [HCHttpCallRequestGetTimeout](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeout.md) | 获取此 HTTP 调用的超时时间。 |
| [HCHttpCallRequestGetTimeoutWindow](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeoutwindow.md) | 设置以秒为单位的 HTTP 超时窗口。 |
| [HCHttpCallRequestGetUrl](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgeturl.md) | 获取 HTTP 调用的 URL 和方法。 |
| [HCHttpCallResponseAppendResponseBodyBytes](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponseappendresponsebodybytes.md) | 追加数据到该 HTTP 调用的响应正文字节缓冲区。如果此前已通过 HCHttpCallResponseSetResponseBodyWriteFunction 在此调用句柄上设置了自定义写入回调，则此操作将失败，因为二者互斥。 |
| [HCHttpCallResponseSetHeader](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheader.md) | 为 HTTP 调用设置响应标头。 |
| [HCHttpCallResponseSetHeaderWithLength](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheaderwithlength.md) | 为 HTTP 调用设置响应标头。 |
| [HCHttpCallResponseSetNetworkErrorCode](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode.md) | 设置 HTTP 调用的网络错误代码。 |
| [HCHttpCallResponseSetPlatformNetworkErrorMessage](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage.md) | 设置 HTTP 调用的平台网络错误消息。 |
| [HCHttpCallResponseSetResponseBodyBytes](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes.md) | 设置 HTTP 调用的响应正文字节缓冲区。如果此前已通过 HCHttpCallResponseSetResponseBodyWriteFunction 在此调用句柄上设置了自定义写入回调，则此操作将失败，因为二者互斥。 |
| [HCHttpCallResponseGetResponseBodyWriteFunction](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsegetresponsebodywritefunction.md) | 获取 HTTP 调用用于写入响应正文的函数。 |
| [HCHttpCallResponseSetStatusCode](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetstatuscode.md) | 设置 HTTP 调用响应的 HTTP 状态代码。 |
| [HCHttpCallSetContext](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallsetcontext.md) | 设置附加到此调用对象的上下文指针。 |
| [HCSetHttpCallPerformFunction](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction.md) | 可选地允许调用方实现 HTTP perform 函数。 |
| [HCSetWebSocketFunctions](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcsetwebsocketfunctions.md) | 可选地允许调用方实现 WebSocket 函数。 |
| [HCWebSocketGetHeader](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheader.md) | 获取 WebSocket 的标头。 |
| [HCWebSocketGetHeaderAtIndex](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md) | 获取 WebSocket 中指定从零开始索引处的标头。 |
| [HCWebSocketGetNumHeaders](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcwebsocketgetnumheaders.md) | 获取 WebSocket 中的标头数量。 |
| [HCWebSocketGetProxyUri](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/httpprovider/functions/hcwebsocketgetproxyuri.md) | 获取 WebSocket 的代理 URI。 |


## Related topics

- [HttpClient API 参考（内容）](https://devdocs.xbox.com/zh-CN/reference/live/httpclient/atoc-httpclient.md)
- [HttpClient API リファレンス (目次)](https://devdocs.xbox.com/ja-jp/reference/live/httpclient/atoc-httpclient.md)
- [HCHttpCallSetContext](https://devdocs.xbox.com/ja-jp/reference/live/httpclient/httpprovider/functions/hchttpcallsetcontext.md)
- [HCHttpCallGetContext](https://devdocs.xbox.com/es/reference/live/httpclient/httpprovider/functions/hchttpcallgetcontext.md)
