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

# HCWebSocketGetNumHeaders

> HCWebSocketGetNumHeaders

# HCWebSocketGetNumHeaders

Obtient le nombre d'en-têtes dans le WebSocket.

## Syntaxe

```cpp theme={null}
HRESULT HCWebSocketGetNumHeaders(  
         HCWebsocketHandle websocket,  
         uint32_t* numHeaders  
)  
```

### Paramètres

*websocket*   \_In\_\
Type : HCWebsocketHandle

Handle du WebSocket.

*numHeaders*   \_Out\_\
Type : uint32\_t\*

Le nombre d'en-têtes dans 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 ou E\_FAIL.

## Configuration requise

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

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

## Voir aussi

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


## Related topics

- [HCWebSocketGetHeaderAtIndex](/fr-CA/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md)
- [HCWebSocketGetHeader](/fr-CA/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheader.md)
- [Requêtes web HTTP et WebSocket dans le GDK](/fr-CA/build/console-features/networking/web-requests/http-networking.md)
- [HCWebSocketSetHeader](/fr-CA/reference/live/httpclient/httpclient/functions/hcwebsocketsetheader.md)
- [HCWebSocketCreate](/fr-CA/reference/live/httpclient/httpclient/functions/hcwebsocketcreate.md)
