Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Servers/Kestrel/Core/src/HttpProtocols.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Runtime.Versioning;

namespace Microsoft.AspNetCore.Server.Kestrel.Core
{
Expand All @@ -15,7 +16,9 @@ public enum HttpProtocols
Http1 = 0x1,
Http2 = 0x2,
Http1AndHttp2 = Http1 | Http2,
[RequiresPreviewFeatures]
Http3 = 0x4,
[RequiresPreviewFeatures]
Http1AndHttp2AndHttp3 = Http1 | Http2 | Http3
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

<PropertyGroup>
<TargetFramework>$(DefaultNetCoreTargetFramework)</TargetFramework>
<!-- Turn on preview features so we can use Http3 -->
<EnablePreviewFeatures>True</EnablePreviewFeatures>
</PropertyGroup>

<ItemGroup>
Expand Down