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

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

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

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

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é et définissez la réponse avec HCHttpCallResponseSet\*().

## Configuration requise

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

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

## Voir aussi

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


## Related topics

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