From 82eb3fa0974b838358ee46bc6c5381e5ae5de6b9 Mon Sep 17 00:00:00 2001 From: Jon Shier Date: Sat, 21 Mar 2020 04:13:55 -0400 Subject: [PATCH] Make replacement method public, clean up ACLs. (#194) --- Sources/NIOHTTP2/HTTP2PipelineHelpers.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/NIOHTTP2/HTTP2PipelineHelpers.swift b/Sources/NIOHTTP2/HTTP2PipelineHelpers.swift index 05e6cbd2..bb0316ce 100644 --- a/Sources/NIOHTTP2/HTTP2PipelineHelpers.swift +++ b/Sources/NIOHTTP2/HTTP2PipelineHelpers.swift @@ -30,7 +30,7 @@ import NIOTLS /// Configuring for servers is very similar, but is left as an exercise for the reader. public let NIOHTTP2SupportedALPNProtocols = ["h2", "http/1.1"] -public extension ChannelPipeline { +extension ChannelPipeline { /// Configures a channel pipeline to perform a HTTP/2 secure upgrade. /// /// HTTP/2 secure upgrade uses the Application Layer Protocol Negotiation TLS extension to @@ -57,8 +57,8 @@ public extension ChannelPipeline { /// pipeline has been fully mutated. /// - returns: An `EventLoopFuture` that completes when the pipeline is ready to negotiate. @available(*, deprecated, renamed: "Channel.configureHTTP2SecureUpgrade(h2ChannelConfigurator:http1ChannelConfigurator:)") - func configureHTTP2SecureUpgrade(h2PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture, - http1PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture) -> EventLoopFuture { + public func configureHTTP2SecureUpgrade(h2PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture, + http1PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture) -> EventLoopFuture { let alpnHandler = ApplicationProtocolNegotiationHandler { result in switch result { case .negotiated("h2"): @@ -131,8 +131,8 @@ extension Channel { /// negotiated, or if no protocol was negotiated. Must return a future that completes when the /// channel has been fully mutated. /// - returns: An `EventLoopFuture` that completes when the channel is ready to negotiate. - func configureHTTP2SecureUpgrade(h2ChannelConfigurator: @escaping (Channel) -> EventLoopFuture, - http1ChannelConfigurator: @escaping (Channel) -> EventLoopFuture) -> EventLoopFuture { + public func configureHTTP2SecureUpgrade(h2ChannelConfigurator: @escaping (Channel) -> EventLoopFuture, + http1ChannelConfigurator: @escaping (Channel) -> EventLoopFuture) -> EventLoopFuture { let alpnHandler = ApplicationProtocolNegotiationHandler { result in switch result { case .negotiated("h2"):