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

# XblHttpCallRequestSetRetryAllowed

> XblHttpCallRequestSetRetryAllowed

# XblHttpCallRequestSetRetryAllowed

Sets if retry is allowed for this HTTP call.

## Syntax

```cpp theme={null}
HRESULT XblHttpCallRequestSetRetryAllowed(  
         XblHttpCallHandle call,  
         bool retryAllowed  
)  
```

### Parameters

*call*   \_In\_\
Type: [XblHttpCallHandle](/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

The handle of the HTTP call. Pass nullptr to set the default for future calls.

*retryAllowed*   \_In\_\
Type: bool

If retry is allowed for this HTTP call.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, or E\_FAIL.

## Remarks

Defaults to true. This must be called prior to calling [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync).

## Requirements

**Header:** http\_call\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[http\_call\_c](/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [HCHttpCallRequestSetRetryAllowed](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretryallowed.md)
- [HCHttpCallRequestGetRetryAllowed](/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretryallowed.md)
- [XblHttpCallRequestSetRetryCacheId](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetretrycacheid.md)
- [HCHttpCallRequestSetRetryDelay](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretrydelay.md)
- [HCHttpCallRequestSetRetryCacheId](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretrycacheid.md)
