HttpProtocol.IsHttp10(String) 方法

定义

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

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

参数

protocol
String

HTTP 请求协议。

返回

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

适用于