> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpprovider/httpprovider_members.md)


## Related topics

- [HCGetHttpCallPerformFunction](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpprovider/functions/hcgethttpcallperformfunction.md)
- [httpProvider (目次)](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpprovider/httpprovider_members.md)
- [HCHttpCallResponseSetResponseBodyWriteFunction](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallresponsesetresponsebodywritefunction.md)
- [HCHttpCallRequestSetRequestBodyReadFunction](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetrequestbodyreadfunction.md)
- [HCHttpCallPerformAsync](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallperformasync.md)
