KestrelServerOptions.RequestHeaderEncodingSelector 属性

定义

获取或设置一个回调,该回调返回 Encoding 以解码指定请求标头名称的值或使用 null 默认 UTF8Encoding的 。

public:
 property Func<System::String ^, System::Text::Encoding ^> ^ RequestHeaderEncodingSelector { Func<System::String ^, System::Text::Encoding ^> ^ get(); void set(Func<System::String ^, System::Text::Encoding ^> ^ value); };
public Func<string,System.Text.Encoding> RequestHeaderEncodingSelector { get; set; }
public Func<string,System.Text.Encoding?> RequestHeaderEncodingSelector { get; set; }
member this.RequestHeaderEncodingSelector : Func<string, System.Text.Encoding> with get, set
Public Property RequestHeaderEncodingSelector As Func(Of String, Encoding)

属性值

适用于