KestrelServerOptions.EnableAltSvc 屬性

定義

警告

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.

控制是否要從 HTTP/2 或較低的 HTTP/3 回應傳回 「Alt-Svc」 標頭。

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; }

屬性值

屬性

備註

預設為 False。

適用於

產品 版本 (已過時)
ASP.NET Core 5.0 (6.0, 7.0, 8.0, 9.0)