SocketsHttpHandler.RequestHeaderEncodingSelector Property

Definition

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.

Applies to

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