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

# HCWebSocketGetHeader

> HCWebSocketGetHeader

# HCWebSocketGetHeader

WebSocket のヘッダーを取得します。

## 構文

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

### パラメーター

*websocket*   \_In\_\
型: HCWebsocketHandle

WebSocket のハンドル。

*headerName*   \_In\_z\_\
型: char\*

WebSocket 用の UTF-8 でエンコードされたヘッダー名。

*headerValue*   \_Out\_\
型: char\*\*

WebSocket 用の UTF-8 でエンコードされたヘッダー値。

### 戻り値

型: HRESULT

この API 操作の結果コード。指定可能な値は、S\_OK、E\_INVALIDARG、E\_OUTOFMEMORY、または E\_FAIL です。

## 要件

**ヘッダー:** httpProvider.h

**ライブラリ:** libHttpClient.GDK.lib

## 関連項目

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


## Related topics

- [HCWebSocketGetHeaderAtIndex](/ja-jp/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md)
- [HCWebSocketGetNumHeaders](/ja-jp/reference/live/httpclient/httpprovider/functions/hcwebsocketgetnumheaders.md)
- [HCWebSocketSetHeader](/ja-jp/reference/live/httpclient/httpclient/functions/hcwebsocketsetheader.md)
- [HCGetWebSocketFunctions](/ja-jp/reference/live/httpclient/httpprovider/functions/hcgetwebsocketfunctions.md)
- [HCWebSocketGetProxyUri](/ja-jp/reference/live/httpclient/httpprovider/functions/hcwebsocketgetproxyuri.md)
