|
|
|
@ -1443,18 +1443,18 @@ namespace WebSocketSharp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Determines whether the specified <see cref="HttpListenerRequest"/> is
|
|
|
|
/// Determines whether the specified HTTP request is an upgrade request to
|
|
|
|
/// an HTTP Upgrade request to switch to the specified <paramref name="protocol"/>.
|
|
|
|
/// switch to the specified protocol.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>
|
|
|
|
/// <returns>
|
|
|
|
/// <c>true</c> if <paramref name="request"/> is an HTTP Upgrade request to switch to
|
|
|
|
/// <c>true</c> if <paramref name="request"/> is an upgrade request to
|
|
|
|
/// <paramref name="protocol"/>; otherwise, <c>false</c>.
|
|
|
|
/// switch to <paramref name="protocol"/>; otherwise, <c>false</c>.
|
|
|
|
/// </returns>
|
|
|
|
/// </returns>
|
|
|
|
/// <param name="request">
|
|
|
|
/// <param name="request">
|
|
|
|
/// A <see cref="HttpListenerRequest"/> that represents the HTTP request.
|
|
|
|
/// A <see cref="HttpListenerRequest"/> to test.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
/// <param name="protocol">
|
|
|
|
/// <param name="protocol">
|
|
|
|
/// A <see cref="string"/> that represents the protocol name.
|
|
|
|
/// A <see cref="string"/> that represents the name of the protocol.
|
|
|
|
/// </param>
|
|
|
|
/// </param>
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
/// <exception cref="ArgumentNullException">
|
|
|
|
/// <para>
|
|
|
|
/// <para>
|
|
|
|
@ -1468,7 +1468,7 @@ namespace WebSocketSharp
|
|
|
|
/// </para>
|
|
|
|
/// </para>
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
/// <exception cref="ArgumentException">
|
|
|
|
/// <exception cref="ArgumentException">
|
|
|
|
/// <paramref name="protocol"/> is empty.
|
|
|
|
/// <paramref name="protocol"/> is an empty string.
|
|
|
|
/// </exception>
|
|
|
|
/// </exception>
|
|
|
|
public static bool IsUpgradeTo (
|
|
|
|
public static bool IsUpgradeTo (
|
|
|
|
this HttpListenerRequest request, string protocol
|
|
|
|
this HttpListenerRequest request, string protocol
|
|
|
|
|