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

# http_call_c

> http_call_c

# http\_call\_c

## Enumerations

| Enumeration                                                                                          | Description                                                              |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [XblHttpCallResponseBodyType](/reference/live/xsapi-c/http_call_c/enums/xblhttpcallresponsebodytype) | Defines the response body type when reading the results of an HTTP call. |

## Functions

| Function                                                                                                                             | Description                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
| [XblHttpCallCloseHandle](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallclosehandle)                                       | Decrements the reference count on the call object.                                  |
| [XblHttpCallCreate](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallcreate)                                                 | Creates an HTTP call handle.                                                        |
| [XblHttpCallDuplicateHandle](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallduplicatehandle)                               | Duplicates the XblHttpCallHandle object.                                            |
| [XblHttpCallGetHeader](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheader)                                           | Get a response header for the HTTP call for a given header name.                    |
| [XblHttpCallGetHeaderAtIndex](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex)                             | Gets the response headers at specific zero based index in the HTTP call.            |
| [XblHttpCallGetNetworkErrorCode](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnetworkerrorcode)                       | Get the network error code of the HTTP call.                                        |
| [XblHttpCallGetNumHeaders](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetnumheaders)                                   | Gets the number of response headers in the HTTP call.                               |
| [XblHttpCallGetPlatformNetworkErrorMessage](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetplatformnetworkerrormessage) | Get the platform network error message of the HTTP call.                            |
| [XblHttpCallGetRequestUrl](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetrequesturl)                                   | Gets the request url for the HTTP call.                                             |
| [XblHttpCallGetResponseBodyBytes](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsebodybytes)                     | Get the response body buffer of the HTTP call.                                      |
| [XblHttpCallGetResponseBodyBytesSize](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsebodybytessize)             | Get the response body buffer size of the HTTP call.                                 |
| [XblHttpCallGetResponseString](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetresponsestring)                           | Get the response body string of the HTTP call.                                      |
| [XblHttpCallGetStatusCode](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetstatuscode)                                   | Get the HTTP status code of the HTTP call response.                                 |
| [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync)                                     | Perform an HTTP call using the XblHttpCallHandle.                                   |
| [XblHttpCallRequestSetHeader](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader)                             | Set a request header for the HTTP call.                                             |
| [XblHttpCallRequestSetLongHttpCall](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetlonghttpcall)                 | Sets a flag which defines the HTTP call as long or not.                             |
| [XblHttpCallRequestSetRequestBodyBytes](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodybytes)         | Set the request body bytes of the HTTP call.                                        |
| [XblHttpCallRequestSetRequestBodyString](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodystring)       | Set the request body string of the HTTP call.                                       |
| [XblHttpCallRequestSetRetryAllowed](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetretryallowed)                 | Sets if retry is allowed for this HTTP call.                                        |
| [XblHttpCallRequestSetRetryCacheId](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetretrycacheid)                 | ID number of this REST endpoint used to cache the Retry-After header for fast fail. |
| [XblHttpCallSetTracing](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallsettracing)                                         | Enables or disables tracing for this specific HTTP call.                            |

## Handles

| Handle                                                                             | Description               |
| ---------------------------------------------------------------------------------- | ------------------------- |
| [XblHttpCallHandle](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle) | A handle to an HTTP call. |


## Related topics

- [XblHttpCallRequestSetLongHttpCall](/ja-jp/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetlonghttpcall.md)
- [XblHttpCallCreate](/ja-jp/reference/live/xsapi-c/http_call_c/functions/xblhttpcallcreate.md)
- [XblHttpCallSetTracing](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallsettracing.md)
- [XblHttpCallCloseHandle](/ja-jp/reference/live/xsapi-c/http_call_c/functions/xblhttpcallclosehandle.md)
- [XblHttpCallDuplicateHandle](/ja-jp/reference/live/xsapi-c/http_call_c/functions/xblhttpcallduplicatehandle.md)
