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

Permite, opcionalmente, que o chamador implemente a função de execução HTTP.

## Sintaxe

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

### Parâmetros

*performFunc*   \_In\_\
Tipo: HCCallPerformFunction

Um retorno de chamada que implementa a função de execução HTTP conforme desejado.

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

O contexto do retorno de chamada.

### Valor retornado

Tipo: HRESULT

Código de resultado desta operação de API. Os valores possíveis são S\_OK ou E\_HC\_ALREADY\_INITIALISED.

## Comentários

Deve ser chamada antes de HCInit. No retorno de chamada HCCallPerformFunction, use HCHttpCallRequestGet\*() e HCSettingsGet\*() para obter informações sobre a chamada HTTP, execute a chamada conforme desejado e defina a resposta com HCHttpCallResponseSet\*().

## Requisitos

**Cabeçalho:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Confira também

[httpProvider](/pt-BR/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

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