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

# HCHttpCallRequestGetTimeoutWindow

> HCHttpCallRequestGetTimeoutWindow

# HCHttpCallRequestGetTimeoutWindow

設定 HTTP 逾時時間範圍 (以秒為單位)。

## 語法

```cpp theme={null}
HRESULT HCHttpCallRequestGetTimeoutWindow(  
         HCCallHandle call,  
         uint32_t* timeoutWindowInSeconds  
)  
```

### 參數

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

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

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

逾時時間範圍 (以秒為單位)。

### 傳回值

類型：HRESULT

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

## 備註

這會控制在失敗之前，花多少時間嘗試重試等冪服務呼叫。<br /> 預設值為 20 秒。<br /><br /> 當發生網路錯誤，或伺服器回應 <br /> 下列其中一個 HTTP 狀態碼時，會重試等冪服務呼叫：<br /> 408 (要求逾時)<br /> 429 (要求過多)<br /> 500 (內部伺服器錯誤)<br /> 502 (錯誤的閘道)<br /> 503 (服務無法使用)<br /> 504 (閘道逾時)<br />

## 需求

**標頭：** httpProvider.h

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

## 另請參閱

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


## Related topics

- [HCHttpCallRequestSetTimeoutWindow](/zh-TW/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeoutwindow.md)
- [HCHttpCallRequestGetTimeout](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeout.md)
- [HCHttpCallRequestSetTimeout](/zh-TW/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeout.md)
- [HCHttpCallRequestGetRetryDelay](/zh-TW/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
- [XblContextSettingsGetHttpTimeoutWindow](/zh-TW/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
