Skip to content

Commit 82eb3fa

Browse files
authored
Make replacement method public, clean up ACLs. (#194)
1 parent 6970de5 commit 82eb3fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/NIOHTTP2/HTTP2PipelineHelpers.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import NIOTLS
3030
/// Configuring for servers is very similar, but is left as an exercise for the reader.
3131
public let NIOHTTP2SupportedALPNProtocols = ["h2", "http/1.1"]
3232

33-
public extension ChannelPipeline {
33+
extension ChannelPipeline {
3434
/// Configures a channel pipeline to perform a HTTP/2 secure upgrade.
3535
///
3636
/// HTTP/2 secure upgrade uses the Application Layer Protocol Negotiation TLS extension to
@@ -57,8 +57,8 @@ public extension ChannelPipeline {
5757
/// pipeline has been fully mutated.
5858
/// - returns: An `EventLoopFuture<Void>` that completes when the pipeline is ready to negotiate.
5959
@available(*, deprecated, renamed: "Channel.configureHTTP2SecureUpgrade(h2ChannelConfigurator:http1ChannelConfigurator:)")
60-
func configureHTTP2SecureUpgrade(h2PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture<Void>,
61-
http1PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
60+
public func configureHTTP2SecureUpgrade(h2PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture<Void>,
61+
http1PipelineConfigurator: @escaping (ChannelPipeline) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
6262
let alpnHandler = ApplicationProtocolNegotiationHandler { result in
6363
switch result {
6464
case .negotiated("h2"):
@@ -131,8 +131,8 @@ extension Channel {
131131
/// negotiated, or if no protocol was negotiated. Must return a future that completes when the
132132
/// channel has been fully mutated.
133133
/// - returns: An `EventLoopFuture<Void>` that completes when the channel is ready to negotiate.
134-
func configureHTTP2SecureUpgrade(h2ChannelConfigurator: @escaping (Channel) -> EventLoopFuture<Void>,
135-
http1ChannelConfigurator: @escaping (Channel) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
134+
public func configureHTTP2SecureUpgrade(h2ChannelConfigurator: @escaping (Channel) -> EventLoopFuture<Void>,
135+
http1ChannelConfigurator: @escaping (Channel) -> EventLoopFuture<Void>) -> EventLoopFuture<Void> {
136136
let alpnHandler = ApplicationProtocolNegotiationHandler { result in
137137
switch result {
138138
case .negotiated("h2"):

0 commit comments

Comments
 (0)