Skip to content

Commit 6376e7e

Browse files
authored
HTTP/3: Complete support for UseHttps (#42774)
1 parent 5c79e41 commit 6376e7e

28 files changed

+1145
-103
lines changed

src/Servers/Connections.Abstractions/src/Microsoft.AspNetCore.Connections.Abstractions.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<Description>Core components of ASP.NET Core networking protocol stack.</Description>
@@ -19,6 +19,11 @@
1919
<Compile Include="$(SharedSourceRoot)CodeAnalysis\*.cs" />
2020
</ItemGroup>
2121

22+
<ItemGroup>
23+
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Shipped.txt" />
24+
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Unshipped.txt" />
25+
</ItemGroup>
26+
2227
<!-- Special case building from source because Microsoft.Bcl.AsyncInterfaces isn't available for source builds. -->
2328
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR
2429
'$(TargetFramework)' == '$(DefaultNetFxTargetFramework)' OR

src/Servers/Connections.Abstractions/src/PublicAPI/net7.0/PublicAPI.Shipped.txt

Lines changed: 182 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#nullable enable
2+
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature
3+
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void
4+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext
5+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.ClientHelloInfo.get -> System.Net.Security.SslClientHelloInfo
6+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.ClientHelloInfo.set -> void
7+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.Connection.get -> Microsoft.AspNetCore.Connections.BaseConnectionContext!
8+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.Connection.set -> void
9+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.State.get -> object?
10+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.State.set -> void
11+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext.TlsConnectionCallbackContext() -> void
12+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions
13+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.ApplicationProtocols.get -> System.Collections.Generic.List<System.Net.Security.SslApplicationProtocol>!
14+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.ApplicationProtocols.set -> void
15+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnection.get -> System.Func<Microsoft.AspNetCore.Connections.TlsConnectionCallbackContext!, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<System.Net.Security.SslServerAuthenticationOptions!>>!
16+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnection.set -> void
17+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnectionState.get -> object?
18+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.OnConnectionState.set -> void
19+
Microsoft.AspNetCore.Connections.TlsConnectionCallbackOptions.TlsConnectionCallbackOptions() -> void

src/Servers/Connections.Abstractions/src/PublicAPI/netstandard2.0/PublicAPI.Shipped.txt

Lines changed: 182 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#nullable enable
2+
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature
3+
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void

src/Servers/Connections.Abstractions/src/PublicAPI/netstandard2.1/PublicAPI.Shipped.txt

Lines changed: 182 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#nullable enable
2+
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature
3+
Microsoft.AspNetCore.Connections.Features.IStreamClosedFeature.OnClosed(System.Action<object?>! callback, object? state) -> void
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
#if NET7_0_OR_GREATER
5+
using System.Net.Security;
6+
using System.Threading;
7+
using Microsoft.AspNetCore.Connections;
8+
using Microsoft.AspNetCore.Http.Features;
9+
10+
namespace Microsoft.AspNetCore.Connections;
11+
12+
/// <summary>
13+
/// Per connection state used to determine the TLS options.
14+
/// </summary>
15+
public class TlsConnectionCallbackContext
16+
{
17+
/// <summary>
18+
/// Information from the Client Hello message.
19+
/// </summary>
20+
public SslClientHelloInfo ClientHelloInfo { get; set; }
21+
22+
/// <summary>
23+
/// The information that was passed when registering the callback.
24+
/// </summary>
25+
public object? State { get; set; }
26+
27+
/// <summary>
28+
/// Information about an individual connection.
29+
/// </summary>
30+
public BaseConnectionContext Connection { get; set; } = default!;
31+
}
32+
#endif

0 commit comments

Comments
 (0)