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

# XblHttpCallRequestSetHeader

> XblHttpCallRequestSetHeader

# XblHttpCallRequestSetHeader

Define um cabeçalho de solicitação para a chamada HTTP.

## Sintaxe

```cpp theme={null}
HRESULT XblHttpCallRequestSetHeader(  
         XblHttpCallHandle call,  
         const char* headerName,  
         const char* headerValue,  
         bool allowTracing  
)  
```

### Parâmetros

*call*   \_In\_\
Tipo: [XblHttpCallHandle](/pt-BR/reference/live/xsapi-c/http_call_c/handles/xblhttpcallhandle)

O identificador da chamada HTTP.

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

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

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

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

*allowTracing*   \_In\_\
Tipo: bool

Defina como false para ignorar o rastreamento deste cabeçalho de solicitação, por exemplo, se ele contiver informações privadas.

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

## Comentários

Isso deve ser chamado antes de chamar [XblHttpCallPerformAsync](/pt-BR/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync).

## Requisitos

**Cabeçalho:** http\_call\_c.h

**Biblioteca:** Microsoft.Xbox.Services.14x.GDK.C.lib

## Confira também

[http\_call\_c](/pt-BR/reference/live/xsapi-c/http_call_c/http_call_c_members)


## Related topics

- [XblHttpCallRequestSetHeader](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetheader.md)
- [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync.md)
- [HTTP and WebSocket web requests in the GDK](/build/console-features/networking/web-requests/http-networking.md)
- [XblHttpCallRequestSetLongHttpCall](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetlonghttpcall.md)
- [XblHttpCallRequestSetRequestBodyBytes](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallrequestsetrequestbodybytes.md)
