Ext..::..IsUpgradeTo Method
Determines whether the specified HttpListenerRequest is
an HTTP Upgrade request to switch to the specified protocol.
Namespace:
WebSocketSharpAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public static bool IsUpgradeTo( HttpListenerRequest request, string protocol )
Public Shared Function IsUpgradeTo ( _ request As HttpListenerRequest, _ protocol As String _ ) As Boolean
public: static bool^ IsUpgradeTo( HttpListenerRequest^ request, String^ protocol )
Parameters
- request
- Type: WebSocketSharp.Net..::..HttpListenerRequest
A HttpListenerRequest that represents the HTTP request.
Return Value
true if request is an HTTP Upgrade request to switch to protocol; otherwise, false.Exceptions
Exception | Condition |
---|---|
ArgumentNullException | request is nullNothingnullptra null reference (Nothing in Visual Basic). -or- protocol is nullNothingnullptra null reference (Nothing in Visual Basic). |
ArgumentException | protocol is empty. |