Determines whether this WebSocket contains a particular HTTP header.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
Parameters
- header
- Type: System String
The HTTP header to check for.
Return Value
true if this WebSocket contains the specified header; otherwise, false.Examples
if (webSocket.ContainsHeader("Content-Type")) { WriteMessage(String.format("Content-Type=%s", webSocket.GetHeaderValue("Content-Type"))); }
See Also