KestrelServerOptions.EnableAltSvc Property

Definition

Caution

This property is obsolete and will be removed in a future version. It no longer has any impact on runtime behavior. Use ListenOptions.DisableAltSvcHeader to configure "Alt-Svc" behavior.

Controls whether to return the "Alt-Svc" header from an HTTP/2 or lower response for HTTP/3.

C#
public bool EnableAltSvc { get; set; }
C#
[System.Obsolete("This property is obsolete and will be removed in a future version. It no longer has any impact on runtime behavior. Use ListenOptions.DisableAltSvcHeader to configure "Alt-Svc" behavior.", true)]
public bool EnableAltSvc { get; set; }

Property Value

Attributes

Remarks

Defaults to false.

Applies to

Product Versions (Obsolete)
ASP.NET Core 5.0 (6.0, 7.0, 8.0, 9.0)