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”标头。

public:
 property bool EnableAltSvc { bool get(); void set(bool value); };
public bool EnableAltSvc { get; set; }
[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; }
member this.EnableAltSvc : bool with get, set
[<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)>]
member this.EnableAltSvc : bool with get, set
Public Property EnableAltSvc As Boolean

属性值

属性

注解

默认为 false。

适用于