@@ -88,12 +88,12 @@ public struct NIOHTTPServer: HTTPServerProtocol {
8888 /// Task-local storage for connection-specific information accessible from request handlers.
8989 ///
9090 /// Use this to access data such as the peer's validated certificate chain.
91- @TaskLocal public static var context : Context = Context ( )
91+ @TaskLocal public static var connectionContext = ConnectionContext ( )
9292
9393 /// Connection-specific information available during request handling.
9494 ///
9595 /// Provides access to data such as the peer's validated certificate chain.
96- public struct Context : Sendable {
96+ public struct ConnectionContext : Sendable {
9797 var peerCertificateChainFuture : EventLoopFuture < NIOSSL . ValidatedCertificateChain ? > ?
9898
9999 init ( _ peerCertificateChainFuture: EventLoopFuture < NIOSSL . ValidatedCertificateChain ? > ? = nil ) {
@@ -375,7 +375,7 @@ public struct NIOHTTPServer: HTTPServerProtocol {
375375 switch try await upgradeResult. get ( ) {
376376 case . http1_1 ( let http1 Channel) :
377377 let chainFuture = http1Channel. channel. nioSSL_peerValidatedCertificateChain ( )
378- Self . $context . withValue ( Context ( chainFuture) ) {
378+ Self . $connectionContext . withValue ( ConnectionContext ( chainFuture) ) {
379379 connectionGroup. addTask {
380380 try await self . handleRequestChannel (
381381 channel: http1Channel,
@@ -387,7 +387,7 @@ public struct NIOHTTPServer: HTTPServerProtocol {
387387 do {
388388 let chainFuture = http2Connection. nioSSL_peerValidatedCertificateChain ( )
389389 for try await http2StreamChannel in http2Multiplexer. inbound {
390- Self . $context . withValue ( Context ( chainFuture) ) {
390+ Self . $connectionContext . withValue ( ConnectionContext ( chainFuture) ) {
391391 connectionGroup. addTask {
392392 try await self . handleRequestChannel (
393393 channel: http2StreamChannel,
0 commit comments