Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/NIOHTTP1/HTTPDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public final class HTTPRequestDecoder: HTTPDecoder<HTTPServerRequestPart> {
///
/// - 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)
}
}
Expand Down Expand Up @@ -196,7 +196,7 @@ public final class HTTPResponseDecoder: HTTPDecoder<HTTPClientResponsePart>, 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.
Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOHTTP1Tests/HTTPDecoderTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import XCTest
import Dispatch
import NIO
@testable import NIOHTTP1
import NIOHTTP1

class HTTPDecoderTest: XCTestCase {
private var channel: EmbeddedChannel!
Expand Down