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

# HCWebSocketGetHeader

> HCWebSocketGetHeader

# HCWebSocketGetHeader

Obtient un en-tête du WebSocket.

## Syntaxe

```cpp theme={null}
HRESULT HCWebSocketGetHeader(  
         HCWebsocketHandle websocket,  
         const char* headerName,  
         const char** headerValue  
)  
```

### Paramètres

*websocket*   \_In\_\
Type : HCWebsocketHandle

Handle du WebSocket.

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

Nom de l'en-tête encodé en UTF-8 pour le WebSocket.

*headerValue*   \_Out\_\
Type : char\*\*

Valeur de l'en-tête encodée en UTF-8 pour le WebSocket.

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

## Configuration requise

**En-tête :** httpProvider.h

**Bibliothèque :** libHttpClient.GDK.lib

## Voir aussi

[httpProvider](/fr/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCWebSocketGetHeaderAtIndex](/fr/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md)
- [HCWebSocketGetNumHeaders](/fr/reference/live/httpclient/httpprovider/functions/hcwebsocketgetnumheaders.md)
- [HCWebSocketSetHeader](/fr/reference/live/httpclient/httpclient/functions/hcwebsocketsetheader.md)
- [HCGetWebSocketFunctions](/fr/reference/live/httpclient/httpprovider/functions/hcgetwebsocketfunctions.md)
- [HCGetWebSocketConnectResult](/fr/reference/live/httpclient/httpclient/functions/hcgetwebsocketconnectresult.md)
