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

Opcionalmente, permite que el autor de la llamada implemente la función de ejecución HTTP.

## Sintaxis

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

### Parámetros

*performFunc*   \_In\_\
Tipo: HCCallPerformFunction

Una devolución de llamada que implementa la función de ejecución HTTP según se desee.

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

El contexto para la devolución de llamada.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API. Los valores posibles son S\_OK o E\_HC\_ALREADY\_INITIALISED.

## Comentarios

Se debe llamar antes de HCInit. En la devolución de llamada HCCallPerformFunction, use HCHttpCallRequestGet\*() y HCSettingsGet\*() para obtener información sobre la llamada HTTP y realizar la llamada según se desee, y establezca la respuesta con HCHttpCallResponseSet\*().

## Requisitos

**Encabezado:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Consulte también

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


## Related topics

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