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

# HCHttpCallRequestGetRetryCacheId

> HCHttpCallRequestGetRetryCacheId

# HCHttpCallRequestGetRetryCacheId

取得此 REST 端點的識別碼，用於快取 Retry-After 標頭以快速失敗。

## 語法

```cpp theme={null}
HRESULT HCHttpCallRequestGetRetryCacheId(  
         HCCallHandle call,  
         uint32_t* retryAfterCacheId  
)  
```

### 參數

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

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

*retryAfterCacheId*   \_Out\_\
類型：uint32\_t\*

此 REST 端點的識別碼，用於快取 Retry-After 標頭以快速失敗。1-1000 保留給 XSAPI 使用。

### 傳回值

類型：HRESULT

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

## 備註

預設為 0。

## 需求

**標頭：** httpProvider.h

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

## 另請參閱

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


## Related topics

- [HCHttpCallRequestSetRetryCacheId](/zh-TW/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretrycacheid.md)
- [XblHttpCallRequestSetRetryCacheId](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetretrycacheid.md)
- [HCHttpCallRequestGetRetryDelay](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
- [HCHttpCallRequestGetRetryAllowed](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretryallowed.md)
- [GDK 中的 HTTP 和 WebSocket Web 要求](/zh-TW/build/console-features/networking/web-requests/http-networking.md)
