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

# XblHttpCallRequestSetLongHttpCall

> XblHttpCallRequestSetLongHttpCall

# XblHttpCallRequestSetLongHttpCall

設定旗標，以定義 HTTP 呼叫是否為長時間呼叫。

## 語法

```cpp theme={null}
HRESULT XblHttpCallRequestSetLongHttpCall(  
         XblHttpCallHandle call,  
         bool longHttpCall  
)  
```

### 參數

*call*   \_In\_\
類型：[XblHttpCallHandle](/zh-TW/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

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

*longHttpCall*   \_In\_\
類型：bool

用來設定 HTTP 呼叫是否為長時間呼叫的布林值。

### 傳回值

類型：HRESULT

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

## 備註

預設為 false。必須在呼叫 [XblHttpCallPerformAsync](/zh-TW/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync) 之前呼叫此函式。

## 需求

**標頭：** http\_call\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

[http\_call\_c](/zh-TW/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [XblHttpCallRequestSetLongHttpCall](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetlonghttpcall.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [XblContextSettingsSetLongHttpTimeout](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
- [HCHttpCallRequestSetTimeoutWindow](/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeoutwindow.md)
- [XblHttpCallRequestSetHeader](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
