HttpRequestMessage.VersionPolicy Property

Definition

Gets or sets the policy that determines how Version is interpreted and how the final HTTP version is negotiated with the server.

C#
public System.Net.Http.HttpVersionPolicy VersionPolicy { get; set; }

Property Value

The HttpVersionPolicy used when the HTTP connection is established.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10