> ## 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](/reference/live/httpclient/httpprovider/functions/hcgethttpcallperformfunction)                                         | Returns the current HCCallPerformFunction callback which implements the HTTP perform function on the current platform.                                                                                                                       |
| [HCGetWebSocketFunctions](/reference/live/httpclient/httpprovider/functions/hcgetwebsocketfunctions)                                                   | Gets the functions that implement the WebSocket functions.                                                                                                                                                                                   |
| [HCHttpCallGetContext](/reference/live/httpclient/httpprovider/functions/hchttpcallgetcontext)                                                         | Gets the context pointer attached to this call object.                                                                                                                                                                                       |
| [HCHttpCallRequestGetHeader](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheader)                                             | Get a request header for the HTTP call for a given header name.                                                                                                                                                                              |
| [HCHttpCallRequestGetHeaderAtIndex](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetheaderatindex)                               | Gets the request headers at specific zero based index in the HTTP call.                                                                                                                                                                      |
| [HCHttpCallRequestGetNumHeaders](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetnumheaders)                                     | Gets the number of request headers in the HTTP call.                                                                                                                                                                                         |
| [HCHttpCallRequestGetRequestBodyBytes](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodybytes)                         | Get the request body bytes of the HTTP call.                                                                                                                                                                                                 |
| [HCHttpCallRequestGetRequestBodyReadFunction](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodyreadfunction)           | Get the function used by the HTTP call to read the request body                                                                                                                                                                              |
| [HCHttpCallRequestGetRequestBodyString](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetrequestbodystring)                       | Get the request body bytes of the HTTP call.                                                                                                                                                                                                 |
| [HCHttpCallRequestGetRetryAllowed](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretryallowed)                                 | Gets if retry is allowed for this HTTP call.                                                                                                                                                                                                 |
| [HCHttpCallRequestGetRetryCacheId](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrycacheid)                                 | Gets the ID number of this REST endpoint used to cache the Retry-After header for fast fail.                                                                                                                                                 |
| [HCHttpCallRequestGetRetryDelay](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay)                                     | Gets the HTTP retry delay in seconds. The default and minimum delay is 2 seconds.                                                                                                                                                            |
| [HCHttpCallRequestGetTimeout](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeout)                                           | Gets the timeout for this HTTP call.                                                                                                                                                                                                         |
| [HCHttpCallRequestGetTimeoutWindow](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeoutwindow)                               | Sets the HTTP timeout window in seconds.                                                                                                                                                                                                     |
| [HCHttpCallRequestGetUrl](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgeturl)                                                   | Gets the url and method for the HTTP call.                                                                                                                                                                                                   |
| [HCHttpCallResponseAppendResponseBodyBytes](/reference/live/httpclient/httpprovider/functions/hchttpcallresponseappendresponsebodybytes)               | Appends to the response body byte buffer of the HTTP call. If a custom write callback was previously set on this call handle using HCHttpCallResponseSetResponseBodyWriteFunction, this operation will fail as these are mutually exclusive. |
| [HCHttpCallResponseSetHeader](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheader)                                           | Set a response header for the HTTP call.                                                                                                                                                                                                     |
| [HCHttpCallResponseSetHeaderWithLength](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheaderwithlength)                       | Set a response header for the HTTP call.                                                                                                                                                                                                     |
| [HCHttpCallResponseSetNetworkErrorCode](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetnetworkerrorcode)                       | Set the network error code of the HTTP call.                                                                                                                                                                                                 |
| [HCHttpCallResponseSetPlatformNetworkErrorMessage](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetplatformnetworkerrormessage) | Set the platform network error message of the HTTP call.                                                                                                                                                                                     |
| [HCHttpCallResponseSetResponseBodyBytes](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetresponsebodybytes)                     | Set the response body byte buffer of the HTTP call. If a custom write callback was previously set on this call handle using HCHttpCallResponseSetResponseBodyWriteFunction, this operation will fail as these are mutually exclusive.        |
| [HCHttpCallResponseGetResponseBodyWriteFunction](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsegetresponsebodywritefunction)     | Get the function used by the HTTP call to write the response body.                                                                                                                                                                           |
| [HCHttpCallResponseSetStatusCode](/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetstatuscode)                                   | Set the HTTP status code of the HTTP call response.                                                                                                                                                                                          |
| [HCHttpCallSetContext](/reference/live/httpclient/httpprovider/functions/hchttpcallsetcontext)                                                         | Sets the context pointer attached to this call object.                                                                                                                                                                                       |
| [HCSetHttpCallPerformFunction](/reference/live/httpclient/httpprovider/functions/hcsethttpcallperformfunction)                                         | Optionally allows the caller to implement the HTTP perform function.                                                                                                                                                                         |
| [HCSetWebSocketFunctions](/reference/live/httpclient/httpprovider/functions/hcsetwebsocketfunctions)                                                   | Optionally allows the caller to implement the WebSocket functions.                                                                                                                                                                           |
| [HCWebSocketGetHeader](/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheader)                                                         | Get a header for the WebSocket.                                                                                                                                                                                                              |
| [HCWebSocketGetHeaderAtIndex](/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex)                                           | Gets the headers at specific zero based index in the WebSocket.                                                                                                                                                                              |
| [HCWebSocketGetNumHeaders](/reference/live/httpclient/httpprovider/functions/hcwebsocketgetnumheaders)                                                 | Gets the number of headers in the WebSocket.                                                                                                                                                                                                 |
| [HCWebSocketGetProxyUri](/reference/live/httpclient/httpprovider/functions/hcwebsocketgetproxyuri)                                                     | Get the proxy URI for the WebSocket.                                                                                                                                                                                                         |


## Related topics

- [HttpClient API reference](/ko/reference/live/httpclient/atoc-httpclient.md)
- [HttpClient API 参考](/zh-CN/reference/live/httpclient/atoc-httpclient.md)
- [HCHttpCallSetContext](/ko/reference/live/httpclient/httpprovider/functions/hchttpcallsetcontext.md)
- [HCHttpCallGetContext](/ja-jp/reference/live/httpclient/httpprovider/functions/hchttpcallgetcontext.md)
- [Referencia de la API HttpClient](/es/reference/live/httpclient/atoc-httpclient.md)
