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

Permet éventuellement à l'appelant d'implémenter la fonction d'exécution HTTP.

## Syntaxe

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

### Paramètres

*performFunc*   \_In\_\
Type : HCCallPerformFunction

Un rappel qui implémente la fonction d'exécution HTTP comme souhaité.

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

Le contexte du rappel.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API. Les valeurs possibles sont S\_OK ou E\_HC\_ALREADY\_INITIALISED.

## Remarques

Doit être appelée avant HCInit. Dans le rappel HCCallPerformFunction, utilisez HCHttpCallRequestGet\*() et HCSettingsGet\*() pour obtenir des informations sur l'appel HTTP, exécutez l'appel comme souhaité, puis définissez la réponse avec HCHttpCallResponseSet\*().

## Configuration requise

**En-tête :** httpProvider.h

**Bibliothèque :** libHttpClient.GDK.lib

## Voir aussi

[httpProvider](https://docs.xbox.com/fr-CA/reference/live/httpclient/httpprovider/httpprovider_members.md)


## Related topics

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