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

# HCWebSocketGetHeaderAtIndex

> HCWebSocketGetHeaderAtIndex

# HCWebSocketGetHeaderAtIndex

Obtiene los encabezados en un índice específico de base cero en el WebSocket.

## Sintaxis

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

### Parámetros

*websocket*   \_In\_\
Tipo: HCWebsocketHandle

El identificador del WebSocket.

*headerIndex*   \_In\_\
Tipo: uint32\_t

Índice específico de base cero del encabezado.

*headerName*   \_Out\_\
Tipo: char\*\*

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

*headerValue*   \_Out\_\
Tipo: char\*\*

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

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

## Comentarios

Use HCHttpCallGetNumHeaders() para saber cuántos encabezados hay en la llamada HTTP.

## Requisitos

**Encabezado:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Consulte también

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


## Related topics

- [HCWebSocketGetHeader](/es/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheader.md)
- [HCWebSocketGetNumHeaders](/es/reference/live/httpclient/httpprovider/functions/hcwebsocketgetnumheaders.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)
