HttpProtocol 類別

定義

包含方法來驗證 HTTP 要求的要求通訊協定版本。

public ref class HttpProtocol abstract sealed
public static class HttpProtocol
type HttpProtocol = class
Public Class HttpProtocol
繼承
HttpProtocol

欄位

Http09

HTTP 通訊協定 0.9 版。

Http10

HTTP 通訊協定 1.0 版。

Http11

HTTP 通訊協定 1.1 版。

Http2

HTTP 通訊協定第 2 版。

Http3

HTTP protcol 第 3 版。

方法

GetHttpProtocol(Version)

取得指定 Version 之 的 HTTP 要求通訊協定。

IsHttp09(String)

傳回值,指出 HTTP 要求通訊協定是否為 HTTP/0.9。

IsHttp10(String)

傳回值,指出 HTTP 要求通訊協定是否為 HTTP/1.0。

IsHttp11(String)

傳回值,指出 HTTP 要求通訊協定是否為 HTTP/1.1。

IsHttp2(String)

傳回值,指出 HTTP 要求通訊協定是否為 HTTP/2。

IsHttp3(String)

傳回值,指出 HTTP 要求通訊協定是否為 HTTP/3。

適用於