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

# HCSetHttpCallPerformFunction

> HCSetHttpCallPerformFunction

# HCSetHttpCallPerformFunction

呼び出し元が HTTP の perform 関数を実装できるようにします (オプション)。

## 構文

```cpp theme={null}
HRESULT HCSetHttpCallPerformFunction(  
         HCCallPerformFunction performFunc,  
         void* performContext  
)  
```

### パラメーター

*performFunc*   \_In\_\
型: HCCallPerformFunction

必要な HTTP perform 関数を実装するコールバック。

*performContext*   \_In\_opt\_\
型: void\*

コールバックのコンテキスト。

### 戻り値

型: HRESULT

この API 操作の結果コード。指定可能な値は、S\_OK、または E\_HC\_ALREADY\_INITIALISED です。

## 解説

HCInit の前に呼び出す必要があります。HCCallPerformFunction コールバック内では、HCHttpCallRequestGet\*() および HCSettingsGet\*() を使用して HTTP 呼び出しに関する情報を取得し、必要に応じて呼び出しを実行して、HCHttpCallResponseSet\*() でレスポンスを設定します。

## 要件

**ヘッダー:** httpProvider.h

**ライブラリ:** libHttpClient.GDK.lib

## 関連項目

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


## Related topics

- [HCGetHttpCallPerformFunction](/ja-jp/reference/live/httpclient/httpprovider/functions/hcgethttpcallperformfunction.md)
- [HCHttpCallResponseSetResponseBodyWriteFunction](/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallresponsesetresponsebodywritefunction.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [HCHttpCallPerformAsync](/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallperformasync.md)
- [XblHttpCallPerformAsync](/ja-jp/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md)
