ListenOptions.Protocols 属性

定义

在此终结点上启用的协议。

public:
 property Microsoft::AspNetCore::Server::Kestrel::Core::HttpProtocols Protocols { Microsoft::AspNetCore::Server::Kestrel::Core::HttpProtocols get(); void set(Microsoft::AspNetCore::Server::Kestrel::Core::HttpProtocols value); };
public Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols Protocols { get; set; }
member this.Protocols : Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols with get, set
Public Property Protocols As HttpProtocols

属性值

注解

默认为 HTTP/1.x、HTTP/2 和 HTTP/3。

适用于