Skip to main content

HCWebSocketGetHeaderAtIndex

Gets the headers at specific zero based index in the WebSocket.

Syntax

Parameters

websocket   _In_
Type: HCWebsocketHandle
The handle of the WebSocket. headerIndex   _In_
Type: uint32_t
Specific zero based index of the header. headerName   _Out_
Type: char**
UTF-8 encoded header name for the HTTP call. headerValue   _Out_
Type: char**
UTF-8 encoded header value for the HTTP call.

Return value

Type: HRESULT Result code for this API operation. Possible values are S_OK, E_INVALIDARG, or E_FAIL.

Remarks

Use HCHttpCallGetNumHeaders() to know how many headers there are in the HTTP call.

Requirements

Header: httpProvider.h Library: libHttpClient.GDK.lib

See also

httpProvider
Last modified on August 4, 2026