HttpProtocol.IsHttp11(String) 方法

定义

返回一个值,该值指示 HTTP 请求协议是否为 HTTP/1.1。

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

参数

protocol
String

HTTP 请求协议。

返回

true 如果协议为 HTTP/1.1,则为 ;否则为 false

适用于