> ## 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 呼叫是否允許重試。

## 語法

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

### 參數

*call*   \_In\_opt\_\
類型：HCCallHandle

HTTP 呼叫的控制代碼。傳遞 nullptr 可取得未來呼叫的預設值。

*retryAllowed*   \_Out\_\
類型：bool\*

此 HTTP 呼叫是否允許重試。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。可能的值為 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## 備註

預設為 true。

## 需求

**標頭：** httpProvider.h

**程式庫：** libHttpClient.GDK.lib

## 另請參閱

[httpProvider](/zh-TW/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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