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

Obtiene el número de encabezados en el WebSocket.

## Sintaxis

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

### Parámetros

*websocket*   \_In\_\
Tipo: HCWebsocketHandle

El identificador del WebSocket.

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

El número de encabezados en el WebSocket.

### Valor devuelto

Tipo: HRESULT

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

## Requisitos

**Encabezado:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Consulte también

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


## Related topics

- [HCWebSocketGetHeaderAtIndex](/es/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md)
- [HCWebSocketGetHeader](/es/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheader.md)
- [HCWebSocketSetHeader](/es/reference/live/httpclient/httpclient/functions/hcwebsocketsetheader.md)
- [HCWebSocketCreate](/es/reference/live/httpclient/httpclient/functions/hcwebsocketcreate.md)
- [HCGetWebSocketFunctions](/es/reference/live/httpclient/httpprovider/functions/hcgetwebsocketfunctions.md)
