HCWebSocketGetHeaderAtIndex

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

Syntax

HRESULT HCWebSocketGetHeaderAtIndex(  
         HCWebsocketHandle websocket,  
         uint32_t headerIndex,  
         const char** headerName,  
         const char** headerValue  
)  

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.141.GSDK.C.lib

See also

httpProvider