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

# HCHttpCallResponseSetHeaderWithLength

> HCHttpCallResponseSetHeaderWithLength

# HCHttpCallResponseSetHeaderWithLength

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

## Sintaxe

```cpp theme={null}
HRESULT HCHttpCallResponseSetHeaderWithLength(  
         HCCallHandle call,  
         const char* headerName,  
         size_t nameSize,  
         const char* headerValue,  
         size_t valueSize  
)  
```

### Parâmetros

*call*   \_In\_\
Tipo: HCCallHandle

O identificador da chamada HTTP.

*headerName*   \_In\_reads\_(nameSize)\
Tipo: char\*

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

*nameSize*   \_In\_\
Tipo: size\_t

O comprimento em bytes da cadeia de caracteres do nome do cabeçalho.

*headerValue*   \_In\_reads\_(valueSize)\
Tipo: char\*

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

*valueSize*   \_In\_\
Tipo: size\_t

O comprimento em bytes da cadeia de caracteres do valor do cabeçalho.

### 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](/pt-BR/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCHttpCallResponseSetHeader](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallresponsesetheader.md)
- [HCHttpCallResponseGetHeader](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheader.md)
- [HCHttpCallResponseGetHeaderAtIndex](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
- [HCHttpCallResponseGetNumHeaders](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetnumheaders.md)
- [HCHttpCallRequestSetHeader](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetheader.md)
