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

# HCHttpCallResponseSetHeader

> HCHttpCallResponseSetHeader

# HCHttpCallResponseSetHeader

Define um cabeçalho de resposta para a chamada HTTP.

## Sintaxe

```cpp theme={null}
HRESULT HCHttpCallResponseSetHeader(  
         HCCallHandle call,  
         const char* headerName,  
         const char* headerValue  
)  
```

### Parâmetros

*call*   \_In\_\
Tipo: HCCallHandle

O identificador da chamada HTTP.

*headerName*   \_In\_z\_\
Tipo: char\*

Nome do cabeçalho de resposta codificado em UTF-8 para a chamada HTTP.

*headerValue*   \_In\_z\_\
Tipo: char\*

Valor do cabeçalho de resposta codificado em UTF-8 para a chamada HTTP.

### Valor retornado

Tipo: HRESULT

Código de resultado desta operação de API. Os valores possíveis são S\_OK, E\_INVALIDARG, E\_OUTOFMEMORY ou E\_FAIL.

## Requisitos

**Cabeçalho:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Confira também

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


## Related topics

- [httpProvider (conteúdo)](https://docs.xbox.com/pt-BR/reference/live/httpclient/httpprovider/httpprovider_members.md)
- [HCHttpCallResponseSetHeaderWithLength](https://docs.xbox.com/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheaderwithlength.md)
- [HCHttpCallResponseGetHeader](https://docs.xbox.com/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheader.md)
- [HCHttpCallResponseGetHeaderAtIndex](https://docs.xbox.com/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
- [HCHttpCallResponseGetNumHeaders](https://docs.xbox.com/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnumheaders.md)
