SocketsHttpHandler.RequestHeaderEncodingSelector Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets a callback that selects the Encoding to encode request header values.

C#
public System.Net.Http.HeaderEncodingSelector<System.Net.Http.HttpRequestMessage>? RequestHeaderEncodingSelector { get; set; }

Property Value

The header encoding selector callback that selects the Encoding to encode the value for the specified request header name, or null to indicate the default behavior.

Exceptions

An operation has already been started on the current instance.

The current instance has been disposed.

Applies to

Produkt Verzie
.NET 5, 6, 7, 8, 9, 10