Skip to main content
Get a header for the WebSocket.

Syntax

Parameters

websocket   _In_
Type: HCWebsocketHandle
The handle of the WebSocket. headerName   _In_z_
Type: char*
UTF-8 encoded header name for the WebSocket. headerValue   _Out_
Type: char**
UTF-8 encoded header value for the WebSocket.

Return value

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

Requirements

Header: httpProvider.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

httpProvider
Last modified on October 30, 2026