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

Définit un en-tête de requête pour l'appel HTTP.

## Syntaxe

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

### Paramètres

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

Handle de l'appel HTTP.

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

Nom de l'en-tête de requête encodé en UTF-8 de l'appel HTTP.

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

Valeur de l'en-tête de requête encodée en UTF-8 de l'appel HTTP.

*allowTracing*   \_In\_\
Type : bool

Définissez sur false pour ne pas suivre cet en-tête de requête, par exemple s'il contient des informations privées.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API. Les valeurs possibles sont S\_OK, E\_INVALIDARG, E\_OUTOFMEMORY ou E\_FAIL.

## Remarques

Cette fonction doit être appelée avant l'appel de [XblHttpCallPerformAsync](/fr/reference/live/xsapi-c/http_call_c/functions/xblhttpcallperformasync).

## Configuration requise

**En-tête :** http\_call\_c.h

**Bibliothèque :** Microsoft.Xbox.Services.14x.GDK.C.lib

## Voir aussi

[http\_call\_c](/fr/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)
