HttpProtocol.IsHttp2(String) Method

Definition

Returns a value that indicates if the HTTP request protocol is HTTP/2.

public:
 static bool IsHttp2(System::String ^ protocol);
public static bool IsHttp2 (string protocol);
static member IsHttp2 : string -> bool
Public Shared Function IsHttp2 (protocol As String) As Boolean

Parameters

protocol
String

The HTTP request protocol.

Returns

true if the protocol is HTTP/2; otherwise, false.

Applies to