HttpProtocol Class

Definition

Contains methods to verify the request protocol version of an HTTP request.

C#
public static class HttpProtocol
Inheritance
HttpProtocol

Fields

Http09

HTTP protocol version 0.9.

Http10

HTTP protocol version 1.0.

Http11

HTTP protocol version 1.1.

Http2

HTTP protocol version 2.

Http3

HTTP protcol version 3.

Methods

GetHttpProtocol(Version)

Gets the HTTP request protocol for the specified Version.

IsHttp09(String)

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

IsHttp10(String)

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

IsHttp11(String)

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

IsHttp2(String)

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

IsHttp3(String)

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

Applies to

Product Versions
ASP.NET Core 5.0, 6.0, 7.0, 8.0, 9.0