Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Struct

HttpVersion

struct HttpVersion

Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpVersion.rvn

Inheritance: Object → ValueType → HttpVersion
Implements: EquatableTo<HttpVersion>

An immutable protocol version value. Representing a version does not enable transport support.

Constructors

1 item
HttpVersion(major: int, minor: int) Creates a version with nonnegative major and minor components; negatives fault.

Properties

3 items
Static member: Http11: HttpVersion HTTP/1.1, the currently supported transport version.
Major: int The major protocol version.
Minor: int The minor protocol version.

Methods

5 items
Equals(other: HttpVersion) -> bool Compares both protocol components without allocating. Implements EquatableTo<HttpVersion>.Equals
Equals(other: object?) -> bool Compares both components with a boxed version; null and other types are unequal. Overrides Object.Equals
GetHashCode() -> int Combines both components consistently with equality; not a persistent identifier. Overrides Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
ToString() -> string Formats the version as major.minor; only explicit formatting creates text. Overrides Object.ToString