HttpProtocol.IsHttp2(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.