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

# HCHttpCallRequestGetTimeout

> HCHttpCallRequestGetTimeout

# HCHttpCallRequestGetTimeout

获取此 HTTP 调用的超时。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetTimeout(  
         HCCallHandle call,  
         uint32_t* timeoutInSeconds  
)  
```

### Parameters

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

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

*timeoutInSeconds*   \_Out\_\
Type: uint32\_t\*

此 HTTP 调用的超时。

### Return value

Type: HRESULT

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

## Remarks

默认为 30 秒。

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

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


## Related topics

- [HCHttpCallRequestGetTimeoutWindow](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeoutwindow.md)
- [HCHttpCallRequestSetTimeout](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeout.md)
- [HCHttpCallRequestSetTimeoutWindow](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeoutwindow.md)
- [HCHttpCallRequestGetRetryDelay](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
- [HCHttpCallGetRequestUrl](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallgetrequesturl.md)
