diff --git a/Sources/NIOHTTP1/HTTPDecoder.swift b/Sources/NIOHTTP1/HTTPDecoder.swift index f3b0aa4e325..0b0e13989a5 100644 --- a/Sources/NIOHTTP1/HTTPDecoder.swift +++ b/Sources/NIOHTTP1/HTTPDecoder.swift @@ -152,7 +152,7 @@ public final class HTTPRequestDecoder: HTTPDecoder { /// /// - parameters: /// - leftOverBytesStrategy: the strategy to use when removing the decoder from the pipeline and an upgrade was detected - convenience init(leftOverBytesStrategy: RemoveAfterUpgradeStrategy) { + public convenience init(leftOverBytesStrategy: RemoveAfterUpgradeStrategy) { self.init(type: HTTPServerRequestPart.self, leftOverBytesStrategy: leftOverBytesStrategy) } } @@ -196,7 +196,7 @@ public final class HTTPResponseDecoder: HTTPDecoder, Cha } /// Strategy to use when a HTTPDecoder is removed from a pipeline after a HTTP upgrade was detected. -enum RemoveAfterUpgradeStrategy { +public enum RemoveAfterUpgradeStrategy { /// Forward all the remaining bytes that are currently buffered in the deccoder to the next handler in the pipeline. case forwardBytes /// Discard all the remaining bytes that are currently buffered in the decoder. diff --git a/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift b/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift index 218d885c00a..776bff07f39 100644 --- a/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift @@ -15,7 +15,7 @@ import XCTest import Dispatch import NIO -@testable import NIOHTTP1 +import NIOHTTP1 class HTTPDecoderTest: XCTestCase { private var channel: EmbeddedChannel!