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

Establece un encabezado de solicitud para la llamada HTTP.

## Sintaxis

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

### Parámetros

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

El identificador de la llamada HTTP.

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

Nombre del encabezado de solicitud codificado en UTF-8 para la llamada HTTP.

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

Valor del encabezado de solicitud codificado en UTF-8 para la llamada HTTP.

*allowTracing*   \_In\_\
Tipo: bool

Establézcalo en false para omitir el seguimiento de este encabezado de solicitud, por ejemplo, si contiene información privada.

### Valor devuelto

Tipo: HRESULT

Código de resultado para esta operación de API. Los valores posibles son S\_OK, E\_INVALIDARG, E\_OUTOFMEMORY o E\_FAIL.

## Comentarios

Se debe llamar a esto antes de llamar a [XblHttpCallPerformAsync](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync).

## Requisitos

**Encabezado:** http\_call\_c.h

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

## Consulte también

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