diff --git a/Package.swift b/Package.swift index a4d401411..488e33047 100644 --- a/Package.swift +++ b/Package.swift @@ -29,8 +29,8 @@ var targets: [PackageDescription.Target] = [ "_NIODataStructures", "NIOEmbedded"]), .target(name: "_NIOConcurrency", - dependencies: ["NIO"]), - .target(name: "NIOFoundationCompat", dependencies: ["NIO"]), + dependencies: ["NIOCore"]), + .target(name: "NIOFoundationCompat", dependencies: ["NIOCore"]), .target(name: "CNIOAtomics", dependencies: []), .target(name: "CNIOSHA1", dependencies: []), .target(name: "CNIOLinux", dependencies: []), @@ -39,59 +39,59 @@ var targets: [PackageDescription.Target] = [ .target(name: "NIOConcurrencyHelpers", dependencies: ["CNIOAtomics"]), .target(name: "NIOHTTP1", - dependencies: ["NIO", "NIOConcurrencyHelpers", "CNIOHTTPParser"]), + dependencies: ["NIOCore", "NIOConcurrencyHelpers", "CNIOHTTPParser"]), .target(name: "NIOEchoServer", - dependencies: ["NIO", "NIOConcurrencyHelpers"]), + dependencies: ["NIO", "NIOCore", "NIOConcurrencyHelpers"]), .target(name: "NIOEchoClient", - dependencies: ["NIO", "NIOConcurrencyHelpers"]), + dependencies: ["NIO", "NIOCore", "NIOConcurrencyHelpers"]), .target(name: "NIOHTTP1Server", - dependencies: ["NIO", "NIOHTTP1", "NIOConcurrencyHelpers"]), + dependencies: ["NIO", "NIOCore", "NIOHTTP1", "NIOConcurrencyHelpers"]), .target(name: "NIOHTTP1Client", - dependencies: ["NIO", "NIOHTTP1", "NIOConcurrencyHelpers"]), + dependencies: ["NIO", "NIOCore", "NIOHTTP1", "NIOConcurrencyHelpers"]), .target(name: "CNIOHTTPParser"), - .target(name: "NIOTLS", dependencies: ["NIO"]), + .target(name: "NIOTLS", dependencies: ["NIOCore"]), .target(name: "NIOChatServer", - dependencies: ["NIO", "NIOConcurrencyHelpers"]), + dependencies: ["NIO", "NIOCore", "NIOConcurrencyHelpers"]), .target(name: "NIOChatClient", - dependencies: ["NIO", "NIOConcurrencyHelpers"]), + dependencies: ["NIO", "NIOCore", "NIOConcurrencyHelpers"]), .target(name: "NIOWebSocket", - dependencies: ["NIO", "NIOHTTP1", "CNIOSHA1"]), + dependencies: ["NIOCore", "NIOHTTP1", "CNIOSHA1"]), .target(name: "NIOWebSocketServer", - dependencies: ["NIO", "NIOHTTP1", "NIOWebSocket"]), + dependencies: ["NIO", "NIOCore", "NIOHTTP1", "NIOWebSocket"]), .target(name: "NIOWebSocketClient", - dependencies: ["NIO", "NIOHTTP1", "NIOWebSocket"]), + dependencies: ["NIO", "NIOCore", "NIOHTTP1", "NIOWebSocket"]), .target(name: "NIOPerformanceTester", - dependencies: ["NIO", "NIOHTTP1", "NIOFoundationCompat", "NIOWebSocket"]), + dependencies: ["NIO", "NIOCore", "NIOEmbedded", "NIOHTTP1", "NIOFoundationCompat", "NIOWebSocket"]), .target(name: "NIOMulticastChat", - dependencies: ["NIO"]), + dependencies: ["NIO", "NIOCore"]), .target(name: "NIOUDPEchoServer", - dependencies: ["NIO"]), + dependencies: ["NIO", "NIOCore"]), .target(name: "NIOUDPEchoClient", - dependencies: ["NIO"]), + dependencies: ["NIO", "NIOCore"]), .target(name: "NIOTestUtils", - dependencies: ["NIO", "NIOHTTP1"]), + dependencies: ["NIO", "NIOCore", "NIOEmbedded", "NIOHTTP1"]), .target(name: "NIOCrashTester", - dependencies: ["NIO", "NIOHTTP1", "NIOWebSocket", "NIOFoundationCompat"]), + dependencies: ["NIO", "NIOCore", "NIOEmbedded", "NIOHTTP1", "NIOWebSocket", "NIOFoundationCompat"]), .target(name: "NIOAsyncAwaitDemo", - dependencies: ["NIO", "NIOHTTP1", "_NIOConcurrency"]), + dependencies: ["NIO", "NIOCore", "NIOHTTP1", "_NIOConcurrency"]), .testTarget(name: "NIOEmbeddedTests", dependencies: ["NIOConcurrencyHelpers", "NIOCore", "NIOEmbedded"]), .testTarget(name: "NIOTests", - dependencies: ["NIO", "NIOFoundationCompat", "NIOTestUtils", "NIOConcurrencyHelpers", "NIOEmbedded"]), + dependencies: ["NIO", "NIOCore", "NIOFoundationCompat", "NIOTestUtils", "NIOConcurrencyHelpers", "NIOEmbedded"]), .testTarget(name: "NIOConcurrencyHelpersTests", - dependencies: ["NIOConcurrencyHelpers", "NIO"]), + dependencies: ["NIOConcurrencyHelpers", "NIOCore"]), .testTarget(name: "NIODataStructuresTests", dependencies: ["_NIODataStructures"]), .testTarget(name: "NIOHTTP1Tests", - dependencies: ["NIOHTTP1", "NIOFoundationCompat", "NIOTestUtils"]), + dependencies: ["NIOCore", "NIOEmbedded", "NIO", "NIOHTTP1", "NIOFoundationCompat", "NIOTestUtils"]), .testTarget(name: "NIOTLSTests", - dependencies: ["NIO", "NIOTLS", "NIOFoundationCompat"]), + dependencies: ["NIOCore", "NIOEmbedded", "NIOTLS", "NIOFoundationCompat"]), .testTarget(name: "NIOWebSocketTests", - dependencies: ["NIO", "NIOWebSocket"]), + dependencies: ["NIOCore", "NIOEmbedded", "NIOWebSocket"]), .testTarget(name: "NIOTestUtilsTests", dependencies: ["NIOTestUtils"]), .testTarget(name: "NIOFoundationCompatTests", - dependencies: ["NIO", "NIOFoundationCompat"]), + dependencies: ["NIOCore", "NIOFoundationCompat"]), ] let package = Package( diff --git a/Sources/NIOAsyncAwaitDemo/AsyncChannelIO.swift b/Sources/NIOAsyncAwaitDemo/AsyncChannelIO.swift index 4f85011b1..806180f83 100644 --- a/Sources/NIOAsyncAwaitDemo/AsyncChannelIO.swift +++ b/Sources/NIOAsyncAwaitDemo/AsyncChannelIO.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore import NIOHTTP1 #if compiler(>=5.5) // we cannot write this on one line with `&&` because Swift 5.0 doesn't like it... diff --git a/Sources/NIOAsyncAwaitDemo/FullRequestResponse.swift b/Sources/NIOAsyncAwaitDemo/FullRequestResponse.swift index 7b1622631..e727cb7c9 100644 --- a/Sources/NIOAsyncAwaitDemo/FullRequestResponse.swift +++ b/Sources/NIOAsyncAwaitDemo/FullRequestResponse.swift @@ -14,7 +14,7 @@ // THIS FILE IS MOSTLY COPIED FROM swift-nio-extras -import NIO +import NIOCore import NIOHTTP1 public final class MakeFullRequestHandler: ChannelOutboundHandler { diff --git a/Sources/NIOAsyncAwaitDemo/main.swift b/Sources/NIOAsyncAwaitDemo/main.swift index 32d572d8c..97fc79ad1 100644 --- a/Sources/NIOAsyncAwaitDemo/main.swift +++ b/Sources/NIOAsyncAwaitDemo/main.swift @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO import _NIOConcurrency import NIOHTTP1 diff --git a/Sources/NIOChatClient/main.swift b/Sources/NIOChatClient/main.swift index 4c6ab7205..89eacc7ae 100644 --- a/Sources/NIOChatClient/main.swift +++ b/Sources/NIOChatClient/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO private final class ChatHandler: ChannelInboundHandler { diff --git a/Sources/NIOChatServer/main.swift b/Sources/NIOChatServer/main.swift index d029f5bd6..04cf20193 100644 --- a/Sources/NIOChatServer/main.swift +++ b/Sources/NIOChatServer/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO import Dispatch diff --git a/Sources/NIOCrashTester/CrashTests+ByteBuffer.swift b/Sources/NIOCrashTester/CrashTests+ByteBuffer.swift index ade1a9f90..3e2d31bec 100644 --- a/Sources/NIOCrashTester/CrashTests+ByteBuffer.swift +++ b/Sources/NIOCrashTester/CrashTests+ByteBuffer.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore struct ByteBufferCrashTests { let testMovingReaderIndexPastWriterIndex = CrashTest( diff --git a/Sources/NIOCrashTester/CrashTests+EventLoop.swift b/Sources/NIOCrashTester/CrashTests+EventLoop.swift index 7392655a1..45e7c8dc8 100644 --- a/Sources/NIOCrashTester/CrashTests+EventLoop.swift +++ b/Sources/NIOCrashTester/CrashTests+EventLoop.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO fileprivate let group = MultiThreadedEventLoopGroup(numberOfThreads: 2) diff --git a/Sources/NIOCrashTester/CrashTests+HTTP.swift b/Sources/NIOCrashTester/CrashTests+HTTP.swift index 7d6ce0be7..2ca7f0b24 100644 --- a/Sources/NIOCrashTester/CrashTests+HTTP.swift +++ b/Sources/NIOCrashTester/CrashTests+HTTP.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,8 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOEmbedded +import NIOCore import NIOHTTP1 struct HTTPCrashTests { diff --git a/Sources/NIOCrashTester/OutputGrepper.swift b/Sources/NIOCrashTester/OutputGrepper.swift index bf8b4cf39..de7313693 100644 --- a/Sources/NIOCrashTester/OutputGrepper.swift +++ b/Sources/NIOCrashTester/OutputGrepper.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO import NIOFoundationCompat import class Foundation.Pipe diff --git a/Sources/NIOCrashTester/main.swift b/Sources/NIOCrashTester/main.swift index 013b5c7a2..6fd5f615f 100644 --- a/Sources/NIOCrashTester/main.swift +++ b/Sources/NIOCrashTester/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO import class Foundation.Process import struct Foundation.URL diff --git a/Sources/NIOEchoClient/main.swift b/Sources/NIOEchoClient/main.swift index 898910b94..566a284ea 100644 --- a/Sources/NIOEchoClient/main.swift +++ b/Sources/NIOEchoClient/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO print("Please enter line to send to the server") diff --git a/Sources/NIOEchoServer/main.swift b/Sources/NIOEchoServer/main.swift index 2e2fd178f..9abf556a2 100644 --- a/Sources/NIOEchoServer/main.swift +++ b/Sources/NIOEchoServer/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO private final class EchoHandler: ChannelInboundHandler { diff --git a/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift b/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift index b35f4f8b6..2abdf7047 100644 --- a/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift +++ b/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore import Foundation diff --git a/Sources/NIOFoundationCompat/Codable+ByteBuffer.swift b/Sources/NIOFoundationCompat/Codable+ByteBuffer.swift index 8f0f0746c..acb685165 100644 --- a/Sources/NIOFoundationCompat/Codable+ByteBuffer.swift +++ b/Sources/NIOFoundationCompat/Codable+ByteBuffer.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore import Foundation extension ByteBuffer { diff --git a/Sources/NIOFoundationCompat/JSONSerialization+ByteBuffer.swift b/Sources/NIOFoundationCompat/JSONSerialization+ByteBuffer.swift index 1cd9b75a1..5dfc5fb2d 100644 --- a/Sources/NIOFoundationCompat/JSONSerialization+ByteBuffer.swift +++ b/Sources/NIOFoundationCompat/JSONSerialization+ByteBuffer.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore import Foundation extension JSONSerialization { @@ -28,4 +28,4 @@ extension JSONSerialization { options opt: JSONSerialization.ReadingOptions = []) throws -> Any { return try JSONSerialization.jsonObject(with: Data(buffer: buffer), options: opt) } -} \ No newline at end of file +} diff --git a/Sources/NIOHTTP1/ByteCollectionUtils.swift b/Sources/NIOHTTP1/ByteCollectionUtils.swift index 6baabdffe..75ee72d74 100644 --- a/Sources/NIOHTTP1/ByteCollectionUtils.swift +++ b/Sources/NIOHTTP1/ByteCollectionUtils.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore fileprivate let defaultWhitespaces = [" ", "\t"].map({$0.utf8.first!}) diff --git a/Sources/NIOHTTP1/HTTPDecoder.swift b/Sources/NIOHTTP1/HTTPDecoder.swift index 4e5e2ab6f..210961190 100644 --- a/Sources/NIOHTTP1/HTTPDecoder.swift +++ b/Sources/NIOHTTP1/HTTPDecoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore #if compiler(>=5.1) @_implementationOnly import CNIOHTTPParser #else diff --git a/Sources/NIOHTTP1/HTTPEncoder.swift b/Sources/NIOHTTP1/HTTPEncoder.swift index e7861d0b4..16956886f 100644 --- a/Sources/NIOHTTP1/HTTPEncoder.swift +++ b/Sources/NIOHTTP1/HTTPEncoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore private func writeChunk(wrapOutboundOut: (IOData) -> NIOAny, context: ChannelHandlerContext, isChunked: Bool, chunk: IOData, promise: EventLoopPromise?) { let (mW1, mW2, mW3): (EventLoopPromise?, EventLoopPromise?, EventLoopPromise?) diff --git a/Sources/NIOHTTP1/HTTPPipelineSetup.swift b/Sources/NIOHTTP1/HTTPPipelineSetup.swift index 67a551e1b..cf4886308 100644 --- a/Sources/NIOHTTP1/HTTPPipelineSetup.swift +++ b/Sources/NIOHTTP1/HTTPPipelineSetup.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore /// Configuration required to configure a HTTP client pipeline for upgrade. /// diff --git a/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift b/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift index a9b9ca2c2..561c29330 100644 --- a/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift +++ b/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,14 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// -// -// HTTPServerPipelineHandler.swift -// NIOHTTP1 -// -// Created by Cory Benfield on 01/03/2018. -// - -import NIO +import NIOCore /// A utility function that runs the body code only in debug builds, without /// emitting compiler warnings. diff --git a/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift b/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift index 18bd47ddd..20aacbf8e 100644 --- a/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift +++ b/Sources/NIOHTTP1/HTTPServerProtocolErrorHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore /// A simple channel handler that catches errors emitted by parsing HTTP requests /// and sends 400 Bad Request responses. diff --git a/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift b/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift index d322568d9..42fa7c0ed 100644 --- a/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift +++ b/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore /// Errors that may be raised by the `HTTPServerProtocolUpgrader`. public enum HTTPServerUpgradeErrors: Error { diff --git a/Sources/NIOHTTP1/HTTPTypes.swift b/Sources/NIOHTTP1/HTTPTypes.swift index e4b2b245a..ddc7c1430 100644 --- a/Sources/NIOHTTP1/HTTPTypes.swift +++ b/Sources/NIOHTTP1/HTTPTypes.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore let crlf: StaticString = "\r\n" let headerSeparator: StaticString = ": " diff --git a/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift b/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift index bcc56088d..e2b082dfb 100644 --- a/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift +++ b/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore /// Errors that may be raised by the `HTTPClientProtocolUpgrader`. public struct NIOHTTPClientUpgradeError: Hashable, Error { diff --git a/Sources/NIOHTTP1/NIOHTTPObjectAggregator.swift b/Sources/NIOHTTP1/NIOHTTPObjectAggregator.swift index 1b81960f0..1c37021d7 100644 --- a/Sources/NIOHTTP1/NIOHTTPObjectAggregator.swift +++ b/Sources/NIOHTTP1/NIOHTTPObjectAggregator.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore /// The parts of a complete HTTP response from the view of the client. /// diff --git a/Sources/NIOHTTP1Client/main.swift b/Sources/NIOHTTP1Client/main.swift index c6bf0a60e..725675189 100644 --- a/Sources/NIOHTTP1Client/main.swift +++ b/Sources/NIOHTTP1Client/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO import NIOHTTP1 diff --git a/Sources/NIOHTTP1Server/main.swift b/Sources/NIOHTTP1Server/main.swift index 983d51d2b..ce1abdaa4 100644 --- a/Sources/NIOHTTP1Server/main.swift +++ b/Sources/NIOHTTP1Server/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO import NIOHTTP1 diff --git a/Sources/NIOMulticastChat/main.swift b/Sources/NIOMulticastChat/main.swift index 9e9042120..ef7ea84f1 100644 --- a/Sources/NIOMulticastChat/main.swift +++ b/Sources/NIOMulticastChat/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO /// Implements a simple chat protocol. diff --git a/Sources/NIOPerformanceTester/ByteBufferViewIteratorBenchmark.swift b/Sources/NIOPerformanceTester/ByteBufferViewIteratorBenchmark.swift index 92b3a1ec5..18eab20ad 100644 --- a/Sources/NIOPerformanceTester/ByteBufferViewIteratorBenchmark.swift +++ b/Sources/NIOPerformanceTester/ByteBufferViewIteratorBenchmark.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import Foundation -import NIO +import NIOCore final class ByteBufferViewIteratorBenchmark: Benchmark { private let iterations: Int diff --git a/Sources/NIOPerformanceTester/ByteToMessageDecoderDecodeManySmallsBenchmark.swift b/Sources/NIOPerformanceTester/ByteToMessageDecoderDecodeManySmallsBenchmark.swift index edbcda716..623a58f0c 100644 --- a/Sources/NIOPerformanceTester/ByteToMessageDecoderDecodeManySmallsBenchmark.swift +++ b/Sources/NIOPerformanceTester/ByteToMessageDecoderDecodeManySmallsBenchmark.swift @@ -11,8 +11,8 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore +import NIOEmbedded final class ByteToMessageDecoderDecodeManySmallsBenchmark: Benchmark { private let iterations: Int diff --git a/Sources/NIOPerformanceTester/ChannelPipelineBenchmark.swift b/Sources/NIOPerformanceTester/ChannelPipelineBenchmark.swift index 6423f8670..1f1bc0c8e 100644 --- a/Sources/NIOPerformanceTester/ChannelPipelineBenchmark.swift +++ b/Sources/NIOPerformanceTester/ChannelPipelineBenchmark.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,8 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore +import NIOEmbedded final class ChannelPipelineBenchmark: Benchmark { private final class NoOpHandler: ChannelInboundHandler, RemovableChannelHandler { diff --git a/Sources/NIOPerformanceTester/CircularBufferIntoByteBufferBenchmark.swift b/Sources/NIOPerformanceTester/CircularBufferIntoByteBufferBenchmark.swift index 4fd7b0609..8bbda063a 100644 --- a/Sources/NIOPerformanceTester/CircularBufferIntoByteBufferBenchmark.swift +++ b/Sources/NIOPerformanceTester/CircularBufferIntoByteBufferBenchmark.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import Foundation -import NIO +import NIOCore final class CircularBufferIntoByteBufferBenchmark: Benchmark { private let iterations: Int diff --git a/Sources/NIOPerformanceTester/WebSocketFrameDecoderBenchmark.swift b/Sources/NIOPerformanceTester/WebSocketFrameDecoderBenchmark.swift index a6ae31ace..5423704e9 100644 --- a/Sources/NIOPerformanceTester/WebSocketFrameDecoderBenchmark.swift +++ b/Sources/NIOPerformanceTester/WebSocketFrameDecoderBenchmark.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,8 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore +import NIOEmbedded import NIOWebSocket final class WebSocketFrameDecoderBenchmark { diff --git a/Sources/NIOPerformanceTester/WebSocketFrameEncoderBenchmark.swift b/Sources/NIOPerformanceTester/WebSocketFrameEncoderBenchmark.swift index 6d1fac9ae..3248115ff 100644 --- a/Sources/NIOPerformanceTester/WebSocketFrameEncoderBenchmark.swift +++ b/Sources/NIOPerformanceTester/WebSocketFrameEncoderBenchmark.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,8 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore +import NIOEmbedded import NIOWebSocket final class WebSocketFrameEncoderBenchmark { diff --git a/Sources/NIOPerformanceTester/main.swift b/Sources/NIOPerformanceTester/main.swift index 9e60614b4..7d05ae6a2 100644 --- a/Sources/NIOPerformanceTester/main.swift +++ b/Sources/NIOPerformanceTester/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,9 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO +import NIOEmbedded import NIOHTTP1 import NIOFoundationCompat import Dispatch diff --git a/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift b/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift index 2b2e8be75..09be5fe61 100644 --- a/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift +++ b/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore /// The result of an ALPN negotiation. /// diff --git a/Sources/NIOTLS/SNIHandler.swift b/Sources/NIOTLS/SNIHandler.swift index 9104d2718..e29cd9f00 100644 --- a/Sources/NIOTLS/SNIHandler.swift +++ b/Sources/NIOTLS/SNIHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore /// The length of the TLS record header in bytes. private let tlsRecordHeaderLength = 5 diff --git a/Sources/NIOTestUtils/ByteToMessageDecoderVerifier.swift b/Sources/NIOTestUtils/ByteToMessageDecoderVerifier.swift index 4ddb9549c..2e8e91621 100644 --- a/Sources/NIOTestUtils/ByteToMessageDecoderVerifier.swift +++ b/Sources/NIOTestUtils/ByteToMessageDecoderVerifier.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,8 +11,8 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - -import NIO +import NIOCore +import NIOEmbedded public enum ByteToMessageDecoderVerifier { /// - seealso: verifyDecoder(inputOutputPairs:decoderFactory:) diff --git a/Sources/NIOTestUtils/EventCounterHandler.swift b/Sources/NIOTestUtils/EventCounterHandler.swift index c4015065a..adec4ac70 100644 --- a/Sources/NIOTestUtils/EventCounterHandler.swift +++ b/Sources/NIOTestUtils/EventCounterHandler.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore import NIOConcurrencyHelpers /// `EventCounterHandler` is a `ChannelHandler` that counts and forwards all the events that it sees coming through diff --git a/Sources/NIOTestUtils/NIOHTTP1TestServer.swift b/Sources/NIOTestUtils/NIOHTTP1TestServer.swift index afc842817..72f806e96 100644 --- a/Sources/NIOTestUtils/NIOHTTP1TestServer.swift +++ b/Sources/NIOTestUtils/NIOHTTP1TestServer.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO import NIOHTTP1 import NIOConcurrencyHelpers diff --git a/Sources/NIOUDPEchoClient/main.swift b/Sources/NIOUDPEchoClient/main.swift index aaf9c712c..ae5e39d2a 100644 --- a/Sources/NIOUDPEchoClient/main.swift +++ b/Sources/NIOUDPEchoClient/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO print("Please enter line to send to the server") diff --git a/Sources/NIOUDPEchoServer/main.swift b/Sources/NIOUDPEchoServer/main.swift index c704ff6a2..9c746460a 100644 --- a/Sources/NIOUDPEchoServer/main.swift +++ b/Sources/NIOUDPEchoServer/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO private final class EchoHandler: ChannelInboundHandler { diff --git a/Sources/NIOWebSocket/NIOWebSocketClientUpgrader.swift b/Sources/NIOWebSocket/NIOWebSocketClientUpgrader.swift index 80feaaeac..fd33d5d08 100644 --- a/Sources/NIOWebSocket/NIOWebSocketClientUpgrader.swift +++ b/Sources/NIOWebSocket/NIOWebSocketClientUpgrader.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore import NIOHTTP1 @available(*, deprecated, renamed: "NIOWebSocketClientUpgrader") diff --git a/Sources/NIOWebSocket/NIOWebSocketFrameAggregator.swift b/Sources/NIOWebSocket/NIOWebSocketFrameAggregator.swift index b30caa4de..e18e1db6b 100644 --- a/Sources/NIOWebSocket/NIOWebSocketFrameAggregator.swift +++ b/Sources/NIOWebSocket/NIOWebSocketFrameAggregator.swift @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// -import NIO +import NIOCore /// `NIOWebSocketFrameAggregator` buffers inbound fragmented `WebSocketFrame`'s and aggregates them into a single `WebSocketFrame`. diff --git a/Sources/NIOWebSocket/NIOWebSocketServerUpgrader.swift b/Sources/NIOWebSocket/NIOWebSocketServerUpgrader.swift index cc6b3a66a..1199a4632 100644 --- a/Sources/NIOWebSocket/NIOWebSocketServerUpgrader.swift +++ b/Sources/NIOWebSocket/NIOWebSocketServerUpgrader.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import CNIOSHA1 -import NIO +import NIOCore import NIOHTTP1 let magicWebSocketGUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" diff --git a/Sources/NIOWebSocket/WebSocketErrorCodes.swift b/Sources/NIOWebSocket/WebSocketErrorCodes.swift index 9f6393d60..0a2aaf697 100644 --- a/Sources/NIOWebSocket/WebSocketErrorCodes.swift +++ b/Sources/NIOWebSocket/WebSocketErrorCodes.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore /// An enum that represents websocket error codes. /// diff --git a/Sources/NIOWebSocket/WebSocketFrame.swift b/Sources/NIOWebSocket/WebSocketFrame.swift index e91764d70..8ab7d940c 100644 --- a/Sources/NIOWebSocket/WebSocketFrame.swift +++ b/Sources/NIOWebSocket/WebSocketFrame.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore private extension UInt8 { func isAnyBitSetInMask(_ mask: UInt8) -> Bool { diff --git a/Sources/NIOWebSocket/WebSocketFrameDecoder.swift b/Sources/NIOWebSocket/WebSocketFrameDecoder.swift index bb544cb58..c9947d296 100644 --- a/Sources/NIOWebSocket/WebSocketFrameDecoder.swift +++ b/Sources/NIOWebSocket/WebSocketFrameDecoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore /// Errors thrown by the NIO websocket module. public enum NIOWebSocketError: Error { diff --git a/Sources/NIOWebSocket/WebSocketFrameEncoder.swift b/Sources/NIOWebSocket/WebSocketFrameEncoder.swift index 6e950375a..259b00de0 100644 --- a/Sources/NIOWebSocket/WebSocketFrameEncoder.swift +++ b/Sources/NIOWebSocket/WebSocketFrameEncoder.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore private let maxOneByteSize = 125 private let maxTwoByteSize = Int(UInt16.max) diff --git a/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift b/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift index 20335d4af..673a34afc 100644 --- a/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift +++ b/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// -import NIO +import NIOCore /// A simple `ChannelHandler` that catches protocol errors emitted by the diff --git a/Sources/NIOWebSocketClient/main.swift b/Sources/NIOWebSocketClient/main.swift index c4a473248..3bc7e1b79 100644 --- a/Sources/NIOWebSocketClient/main.swift +++ b/Sources/NIOWebSocketClient/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,6 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// +import NIOCore import NIO import NIOHTTP1 import NIOWebSocket diff --git a/Sources/NIOWebSocketServer/main.swift b/Sources/NIOWebSocketServer/main.swift index 789ab1c79..7ce5902fd 100644 --- a/Sources/NIOWebSocketServer/main.swift +++ b/Sources/NIOWebSocketServer/main.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,7 +11,7 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// - +import NIOCore import NIO import NIOHTTP1 import NIOWebSocket diff --git a/Sources/_NIOConcurrency/AsyncAwaitSupport.swift b/Sources/_NIOConcurrency/AsyncAwaitSupport.swift index 8d6d05316..6901905fe 100644 --- a/Sources/_NIOConcurrency/AsyncAwaitSupport.swift +++ b/Sources/_NIOConcurrency/AsyncAwaitSupport.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore #if compiler(>=5.5) import _Concurrency diff --git a/Sources/_NIOConcurrency/Helpers.swift b/Sources/_NIOConcurrency/Helpers.swift index d980daef3..4c022b541 100644 --- a/Sources/_NIOConcurrency/Helpers.swift +++ b/Sources/_NIOConcurrency/Helpers.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIO +import NIOCore #if compiler(>=5.5) fileprivate let hasAsyncAwait = true @@ -20,7 +20,7 @@ fileprivate let hasAsyncAwait = true fileprivate let hasAsyncAwait = false #endif -extension NIO.System { +extension NIOCore.System { public static var hasAsyncAwaitSupport: Bool { return hasAsyncAwait } diff --git a/Tests/NIOConcurrencyHelpersTests/NIOConcurrencyHelpersTests.swift b/Tests/NIOConcurrencyHelpersTests/NIOConcurrencyHelpersTests.swift index 48fac4b91..d5b707a3c 100644 --- a/Tests/NIOConcurrencyHelpersTests/NIOConcurrencyHelpersTests.swift +++ b/Tests/NIOConcurrencyHelpersTests/NIOConcurrencyHelpersTests.swift @@ -18,7 +18,7 @@ import Glibc #endif import Dispatch import XCTest -import NIO +import NIOCore @testable import NIOConcurrencyHelpers class NIOConcurrencyHelpersTests: XCTestCase { diff --git a/Tests/NIOFoundationCompatTests/ByteBufferDataProtocolTests.swift b/Tests/NIOFoundationCompatTests/ByteBufferDataProtocolTests.swift index 10f8e1299..00de9ff70 100644 --- a/Tests/NIOFoundationCompatTests/ByteBufferDataProtocolTests.swift +++ b/Tests/NIOFoundationCompatTests/ByteBufferDataProtocolTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2020 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2020-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -14,7 +14,7 @@ import Foundation import XCTest -import NIO +import NIOCore import NIOFoundationCompat struct FakeContiguousBytes: ContiguousBytes { diff --git a/Tests/NIOFoundationCompatTests/ByteBufferView+MutableDataProtocolTest.swift b/Tests/NIOFoundationCompatTests/ByteBufferView+MutableDataProtocolTest.swift index 0fa274001..18850aeb3 100644 --- a/Tests/NIOFoundationCompatTests/ByteBufferView+MutableDataProtocolTest.swift +++ b/Tests/NIOFoundationCompatTests/ByteBufferView+MutableDataProtocolTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -14,7 +14,7 @@ import Foundation import XCTest -import NIO +import NIOCore import NIOFoundationCompat class ByteBufferViewDataProtocolTests: XCTestCase { diff --git a/Tests/NIOFoundationCompatTests/Codable+ByteBufferTest.swift b/Tests/NIOFoundationCompatTests/Codable+ByteBufferTest.swift index 853dc6a62..32e64ae4e 100644 --- a/Tests/NIOFoundationCompatTests/Codable+ByteBufferTest.swift +++ b/Tests/NIOFoundationCompatTests/Codable+ByteBufferTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -14,7 +14,7 @@ import Foundation import XCTest -import NIO +import NIOCore import NIOFoundationCompat class CodableByteBufferTest: XCTestCase { diff --git a/Tests/NIOFoundationCompatTests/JSONSerialization+ByteBufferTest.swift b/Tests/NIOFoundationCompatTests/JSONSerialization+ByteBufferTest.swift index b60d9a2c9..8e3de7c23 100644 --- a/Tests/NIOFoundationCompatTests/JSONSerialization+ByteBufferTest.swift +++ b/Tests/NIOFoundationCompatTests/JSONSerialization+ByteBufferTest.swift @@ -14,7 +14,7 @@ import Foundation import XCTest -import NIO +import NIOCore import NIOFoundationCompat class JSONSerializationByteBufferTest: XCTestCase { diff --git a/Tests/NIOHTTP1Tests/ByteBufferUtilsTest.swift b/Tests/NIOHTTP1Tests/ByteBufferUtilsTest.swift index 7d12345ab..43301862c 100644 --- a/Tests/NIOHTTP1Tests/ByteBufferUtilsTest.swift +++ b/Tests/NIOHTTP1Tests/ByteBufferUtilsTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore @testable import NIOHTTP1 fileprivate enum DummyError: Error { diff --git a/Tests/NIOHTTP1Tests/HTTPClientUpgradeTests.swift b/Tests/NIOHTTP1Tests/HTTPClientUpgradeTests.swift index 532a5041e..42de8b87d 100644 --- a/Tests/NIOHTTP1Tests/HTTPClientUpgradeTests.swift +++ b/Tests/NIOHTTP1Tests/HTTPClientUpgradeTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -14,7 +14,8 @@ import XCTest import Dispatch -@testable import NIO +@testable import NIOCore +import NIOEmbedded @testable import NIOHTTP1 extension EmbeddedChannel { diff --git a/Tests/NIOHTTP1Tests/HTTPDecoderLengthTest.swift b/Tests/NIOHTTP1Tests/HTTPDecoderLengthTest.swift index fb1457dd3..b0efc36ea 100644 --- a/Tests/NIOHTTP1Tests/HTTPDecoderLengthTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPDecoderLengthTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore +import NIOEmbedded import NIOHTTP1 private class MessageEndHandler: ChannelInboundHandler { diff --git a/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift b/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift index dfce87ba9..386200f80 100644 --- a/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPDecoderTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore +import NIOEmbedded import NIOHTTP1 import NIOTestUtils diff --git a/Tests/NIOHTTP1Tests/HTTPHeadersTest.swift b/Tests/NIOHTTP1Tests/HTTPHeadersTest.swift index e46ed0c6e..c1ab32961 100644 --- a/Tests/NIOHTTP1Tests/HTTPHeadersTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPHeadersTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -@testable import NIO +@testable import NIOCore +import NIOEmbedded @testable import NIOHTTP1 class HTTPHeadersTest : XCTestCase { diff --git a/Tests/NIOHTTP1Tests/HTTPRequestEncoderTest.swift b/Tests/NIOHTTP1Tests/HTTPRequestEncoderTest.swift index 09f9c180b..f2ae117df 100644 --- a/Tests/NIOHTTP1Tests/HTTPRequestEncoderTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPRequestEncoderTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,8 @@ // //===----------------------------------------------------------------------===// import XCTest -@testable import NIO +@testable import NIOCore +import NIOEmbedded @testable import NIOHTTP1 private extension ByteBuffer { diff --git a/Tests/NIOHTTP1Tests/HTTPResponseEncoderTest.swift b/Tests/NIOHTTP1Tests/HTTPResponseEncoderTest.swift index 235289f01..5f0169779 100644 --- a/Tests/NIOHTTP1Tests/HTTPResponseEncoderTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPResponseEncoderTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,8 @@ // //===----------------------------------------------------------------------===// import XCTest -@testable import NIO +@testable import NIOCore +import NIOEmbedded @testable import NIOHTTP1 private extension ByteBuffer { diff --git a/Tests/NIOHTTP1Tests/HTTPServerClientTest.swift b/Tests/NIOHTTP1Tests/HTTPServerClientTest.swift index bf07b7579..b74d2836d 100644 --- a/Tests/NIOHTTP1Tests/HTTPServerClientTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPServerClientTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// import XCTest +import NIOCore import NIO import NIOConcurrencyHelpers import NIOFoundationCompat diff --git a/Tests/NIOHTTP1Tests/HTTPServerPipelineHandlerTest.swift b/Tests/NIOHTTP1Tests/HTTPServerPipelineHandlerTest.swift index c4f34f20a..8b07f9818 100644 --- a/Tests/NIOHTTP1Tests/HTTPServerPipelineHandlerTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPServerPipelineHandlerTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -11,15 +11,10 @@ // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// -// -// HTTPServerPipelineHandlerTest.swift -// NIOHTTP1Tests -// -// Created by Cory Benfield on 02/03/2018. -// import XCTest -import NIO +import NIOCore +import NIOEmbedded @testable import NIOHTTP1 private final class ReadRecorder: ChannelInboundHandler { diff --git a/Tests/NIOHTTP1Tests/HTTPServerProtocolErrorHandlerTest.swift b/Tests/NIOHTTP1Tests/HTTPServerProtocolErrorHandlerTest.swift index e793bd8f3..7514fa0d9 100644 --- a/Tests/NIOHTTP1Tests/HTTPServerProtocolErrorHandlerTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPServerProtocolErrorHandlerTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore +import NIOEmbedded import NIOHTTP1 class HTTPServerProtocolErrorHandlerTest: XCTestCase { diff --git a/Tests/NIOHTTP1Tests/HTTPServerUpgradeTests.swift b/Tests/NIOHTTP1Tests/HTTPServerUpgradeTests.swift index b6ea421b2..473f2149d 100644 --- a/Tests/NIOHTTP1Tests/HTTPServerUpgradeTests.swift +++ b/Tests/NIOHTTP1Tests/HTTPServerUpgradeTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -14,6 +14,8 @@ import XCTest import Dispatch +import NIOCore +import NIOEmbedded @testable import NIO @testable import NIOHTTP1 diff --git a/Tests/NIOHTTP1Tests/HTTPTest.swift b/Tests/NIOHTTP1Tests/HTTPTest.swift index 9338726ea..eb4435512 100644 --- a/Tests/NIOHTTP1Tests/HTTPTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -@testable import NIO +@testable import NIOCore +import NIOEmbedded @testable import NIOHTTP1 private final class TestChannelInboundHandler: ChannelInboundHandler { diff --git a/Tests/NIOHTTP1Tests/NIOHTTPObjectAggregatorTest.swift b/Tests/NIOHTTP1Tests/NIOHTTPObjectAggregatorTest.swift index c60b73cfa..6e499f0a3 100644 --- a/Tests/NIOHTTP1Tests/NIOHTTPObjectAggregatorTest.swift +++ b/Tests/NIOHTTP1Tests/NIOHTTPObjectAggregatorTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore +import NIOEmbedded import NIOHTTP1 import NIOTestUtils diff --git a/Tests/NIOTLSTests/ApplicationProtocolNegotiationHandlerTests.swift b/Tests/NIOTLSTests/ApplicationProtocolNegotiationHandlerTests.swift index 4e2ca0cb0..bf0314375 100644 --- a/Tests/NIOTLSTests/ApplicationProtocolNegotiationHandlerTests.swift +++ b/Tests/NIOTLSTests/ApplicationProtocolNegotiationHandlerTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -@testable import NIO +import NIOCore +import NIOEmbedded import NIOTLS private class ReadCompletedHandler: ChannelInboundHandler { diff --git a/Tests/NIOTLSTests/SNIHandlerTests.swift b/Tests/NIOTLSTests/SNIHandlerTests.swift index fbdd18176..fb973dcbe 100644 --- a/Tests/NIOTLSTests/SNIHandlerTests.swift +++ b/Tests/NIOTLSTests/SNIHandlerTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,7 +12,8 @@ // //===----------------------------------------------------------------------===// import XCTest -@testable import NIO +import NIOCore +import NIOEmbedded import NIOFoundationCompat import NIOTLS diff --git a/Tests/NIOWebSocketTests/NIOWebSocketFrameAggregatorTests.swift b/Tests/NIOWebSocketTests/NIOWebSocketFrameAggregatorTests.swift index 17be4c9e0..1718056ea 100644 --- a/Tests/NIOWebSocketTests/NIOWebSocketFrameAggregatorTests.swift +++ b/Tests/NIOWebSocketTests/NIOWebSocketFrameAggregatorTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore +import NIOEmbedded import NIOWebSocket final class NIOWebSocketFrameAggregatorTests: XCTestCase { diff --git a/Tests/NIOWebSocketTests/WebSocketClientEndToEndTests.swift b/Tests/NIOWebSocketTests/WebSocketClientEndToEndTests.swift index 2e8f5fbc5..f3ab5df21 100644 --- a/Tests/NIOWebSocketTests/WebSocketClientEndToEndTests.swift +++ b/Tests/NIOWebSocketTests/WebSocketClientEndToEndTests.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2019 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2019-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -@testable import NIO +import NIOCore +import NIOEmbedded import NIOHTTP1 @testable import NIOWebSocket diff --git a/Tests/NIOWebSocketTests/WebSocketFrameDecoderTest.swift b/Tests/NIOWebSocketTests/WebSocketFrameDecoderTest.swift index b8d1f8c96..ce766ce45 100644 --- a/Tests/NIOWebSocketTests/WebSocketFrameDecoderTest.swift +++ b/Tests/NIOWebSocketTests/WebSocketFrameDecoderTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore +import NIOEmbedded import NIOWebSocket private class CloseSwallower: ChannelOutboundHandler, RemovableChannelHandler { diff --git a/Tests/NIOWebSocketTests/WebSocketFrameEncoderTest.swift b/Tests/NIOWebSocketTests/WebSocketFrameEncoderTest.swift index 2b1d02ca1..e9e7282a5 100644 --- a/Tests/NIOWebSocketTests/WebSocketFrameEncoderTest.swift +++ b/Tests/NIOWebSocketTests/WebSocketFrameEncoderTest.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2017-2021 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -13,7 +13,8 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore +import NIOEmbedded import NIOWebSocket extension EmbeddedChannel { diff --git a/Tests/NIOWebSocketTests/WebSocketMaskingKeyTests.swift b/Tests/NIOWebSocketTests/WebSocketMaskingKeyTests.swift index 4d0b521b1..d14686125 100644 --- a/Tests/NIOWebSocketTests/WebSocketMaskingKeyTests.swift +++ b/Tests/NIOWebSocketTests/WebSocketMaskingKeyTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import XCTest -import NIO +import NIOCore import NIOWebSocket final class WebSocketMaskingKeyTests: XCTestCase { diff --git a/Tests/NIOWebSocketTests/WebSocketServerEndToEndTests.swift b/Tests/NIOWebSocketTests/WebSocketServerEndToEndTests.swift index e1e54036d..99e66962c 100644 --- a/Tests/NIOWebSocketTests/WebSocketServerEndToEndTests.swift +++ b/Tests/NIOWebSocketTests/WebSocketServerEndToEndTests.swift @@ -14,7 +14,7 @@ import XCTest @testable import NIOCore -import NIO +import NIOEmbedded import NIOHTTP1 @testable import NIOWebSocket