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

# HCHttpCallRequestGetRetryAllowed

> HCHttpCallRequestGetRetryAllowed

# HCHttpCallRequestGetRetryAllowed

获取是否允许对此 HTTP 调用进行重试。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetRetryAllowed(  
         HCCallHandle call,  
         bool* retryAllowed  
)  
```

### Parameters

*call*   \_In\_opt\_\
Type: HCCallHandle

HTTP 调用的句柄。传入 nullptr 可获取用于未来调用的默认值。

*retryAllowed*   \_Out\_\
Type: bool\*

是否允许对此 HTTP 调用进行重试。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## Remarks

默认为 true。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCHttpCallRequestSetRetryAllowed](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretryallowed.md)
- [XblHttpCallRequestSetRetryAllowed](/zh-CN/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetretryallowed.md)
- [HCHttpCallRequestGetRetryDelay](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
- [HCHttpCallRequestGetRetryCacheId](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrycacheid.md)
- [HCHttpCallRequestSetRetryDelay](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretrydelay.md)
