Build Information
Failed to build AsyncHTTP, reference 1.1.0 (56228f), with Swift 6.3 for Wasm on 13 Apr 2026 07:10:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tevelee/AsyncHTTP.git
Reference: 1.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/tevelee/AsyncHTTP
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 56228ff Adopting primary associated types
Cloned https://github.com/tevelee/AsyncHTTP.git
Revision (git rev-parse @):
56228ff141d61083071bd941db2918a4dc040143
SUCCESS checkout https://github.com/tevelee/AsyncHTTP.git at 1.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/tevelee/AsyncHTTP.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2271] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.42s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (1.01s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.96s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/37] Compiling AsyncHTTP Intercept.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: value of type '_' expected to be instance of class or class-constrained type
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | try await urlSession.data(for: request)
51 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/37] Compiling AsyncHTTP Map.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: value of type '_' expected to be instance of class or class-constrained type
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | try await urlSession.data(for: request)
51 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[7/37] Compiling AsyncHTTP Pipe.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: value of type '_' expected to be instance of class or class-constrained type
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | try await urlSession.data(for: request)
51 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[8/37] Compiling AsyncHTTP Pullback.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: value of type '_' expected to be instance of class or class-constrained type
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | try await urlSession.data(for: request)
51 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[9/37] Compiling AsyncHTTP URLSession.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: value of type '_' expected to be instance of class or class-constrained type
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | try await urlSession.data(for: request)
51 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:50:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
50 | try await urlSession.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
51 | }
52 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[10/37] Compiling AsyncHTTP HTTPStatus.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[11/37] Compiling AsyncHTTP HTTPVersion.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[12/37] Compiling AsyncHTTP MIMEType.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[13/37] Compiling AsyncHTTP URIScheme.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPStatus.swift:18:40: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
16 | return "OK"
17 | case let value:
18 | return HTTPURLResponse.localizedString(forStatusCode: value).capitalized
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
19 | }
20 | }
[14/41] Compiling AsyncHTTP Deduplication.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[15/41] Compiling AsyncHTTP Delay.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[16/41] Compiling AsyncHTTP IdentifyRequests.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[17/41] Compiling AsyncHTTP Retry.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[18/41] Compiling AsyncHTTP ServerEnvironment.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[19/41] Compiling AsyncHTTP Throttle.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[20/41] Compiling AsyncHTTP Timeout.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[21/41] Compiling AsyncHTTP ValidateRequests.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:15:42: error: extraneous argument label 'dispatchTimeInterval:' in call
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
| `- error: extraneous argument label 'dispatchTimeInterval:' in call
16 | return nil
17 | }
[22/41] Compiling AsyncHTTP HTTPHeader.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:186:37: warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
184 | }
185 |
186 | extension URLComponents: @unchecked Sendable {}
| `- warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
187 | extension AnyHashable: @unchecked Sendable {}
188 |
FoundationEssentials.URLComponents:2:15: note: 'URLComponents' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLComponents : Hashable, Equatable, Sendable {
| `- note: 'URLComponents' declares conformance to protocol 'Sendable' here
3 | public init()
4 | public init?(url: __shared URL, resolvingAgainstBaseURL resolve: Bool)
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:35: warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| `- warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
188 |
Swift.AnyHashable:2:11: note: 'AnyHashable' declares conformance to protocol 'Sendable' here
1 | @available(*, unavailable)
2 | extension AnyHashable : Sendable {
| `- note: 'AnyHashable' declares conformance to protocol 'Sendable' here
3 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequestBody.swift:113:28: warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
111 | }
112 |
113 | extension Data: @unchecked Sendable {}
| `- warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
114 |
FoundationEssentials.Data:2:23: note: 'Data' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: 'Data' declares conformance to protocol 'Sendable' here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[23/41] Compiling AsyncHTTP HTTPMethod.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:186:37: warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
184 | }
185 |
186 | extension URLComponents: @unchecked Sendable {}
| `- warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
187 | extension AnyHashable: @unchecked Sendable {}
188 |
FoundationEssentials.URLComponents:2:15: note: 'URLComponents' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLComponents : Hashable, Equatable, Sendable {
| `- note: 'URLComponents' declares conformance to protocol 'Sendable' here
3 | public init()
4 | public init?(url: __shared URL, resolvingAgainstBaseURL resolve: Bool)
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:35: warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| `- warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
188 |
Swift.AnyHashable:2:11: note: 'AnyHashable' declares conformance to protocol 'Sendable' here
1 | @available(*, unavailable)
2 | extension AnyHashable : Sendable {
| `- note: 'AnyHashable' declares conformance to protocol 'Sendable' here
3 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequestBody.swift:113:28: warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
111 | }
112 |
113 | extension Data: @unchecked Sendable {}
| `- warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
114 |
FoundationEssentials.Data:2:23: note: 'Data' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: 'Data' declares conformance to protocol 'Sendable' here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[24/41] Compiling AsyncHTTP HTTPRequest.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:186:37: warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
184 | }
185 |
186 | extension URLComponents: @unchecked Sendable {}
| `- warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
187 | extension AnyHashable: @unchecked Sendable {}
188 |
FoundationEssentials.URLComponents:2:15: note: 'URLComponents' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLComponents : Hashable, Equatable, Sendable {
| `- note: 'URLComponents' declares conformance to protocol 'Sendable' here
3 | public init()
4 | public init?(url: __shared URL, resolvingAgainstBaseURL resolve: Bool)
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:35: warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| `- warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
188 |
Swift.AnyHashable:2:11: note: 'AnyHashable' declares conformance to protocol 'Sendable' here
1 | @available(*, unavailable)
2 | extension AnyHashable : Sendable {
| `- note: 'AnyHashable' declares conformance to protocol 'Sendable' here
3 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequestBody.swift:113:28: warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
111 | }
112 |
113 | extension Data: @unchecked Sendable {}
| `- warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
114 |
FoundationEssentials.Data:2:23: note: 'Data' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: 'Data' declares conformance to protocol 'Sendable' here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[25/41] Compiling AsyncHTTP HTTPRequestBody.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:186:37: warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
184 | }
185 |
186 | extension URLComponents: @unchecked Sendable {}
| `- warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
187 | extension AnyHashable: @unchecked Sendable {}
188 |
FoundationEssentials.URLComponents:2:15: note: 'URLComponents' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLComponents : Hashable, Equatable, Sendable {
| `- note: 'URLComponents' declares conformance to protocol 'Sendable' here
3 | public init()
4 | public init?(url: __shared URL, resolvingAgainstBaseURL resolve: Bool)
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:35: warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| `- warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
188 |
Swift.AnyHashable:2:11: note: 'AnyHashable' declares conformance to protocol 'Sendable' here
1 | @available(*, unavailable)
2 | extension AnyHashable : Sendable {
| `- note: 'AnyHashable' declares conformance to protocol 'Sendable' here
3 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequestBody.swift:113:28: warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
111 | }
112 |
113 | extension Data: @unchecked Sendable {}
| `- warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
114 |
FoundationEssentials.Data:2:23: note: 'Data' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: 'Data' declares conformance to protocol 'Sendable' here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[26/41] Compiling AsyncHTTP HTTPResponse.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:186:37: warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
184 | }
185 |
186 | extension URLComponents: @unchecked Sendable {}
| `- warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
187 | extension AnyHashable: @unchecked Sendable {}
188 |
FoundationEssentials.URLComponents:2:15: note: 'URLComponents' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLComponents : Hashable, Equatable, Sendable {
| `- note: 'URLComponents' declares conformance to protocol 'Sendable' here
3 | public init()
4 | public init?(url: __shared URL, resolvingAgainstBaseURL resolve: Bool)
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:35: warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| `- warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
188 |
Swift.AnyHashable:2:11: note: 'AnyHashable' declares conformance to protocol 'Sendable' here
1 | @available(*, unavailable)
2 | extension AnyHashable : Sendable {
| `- note: 'AnyHashable' declares conformance to protocol 'Sendable' here
3 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:64:26: error: cannot find 'URLRequest' in scope
62 | return nil
63 | }
64 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
65 | urlRequest.httpMethod = method.httpFormatted()
66 | urlRequest.httpBody = body.content
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:142:37: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
143 | headers.merge(newHeaders) { _, new in new }
144 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:32: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'name'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:147:52: error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
145 |
146 | public mutating func add(cookie: HTTPCookie) {
147 | addCookie(name: cookie.name, value: cookie.value)
| `- error: value of type 'HTTPCookie' (aka 'AnyObject') has no member 'value'
148 | }
149 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequestBody.swift:113:28: warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
111 | }
112 |
113 | extension Data: @unchecked Sendable {}
| `- warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
114 |
FoundationEssentials.Data:2:23: note: 'Data' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: 'Data' declares conformance to protocol 'Sendable' here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:23:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
21 |
22 | public var status: HTTPStatus {
23 | HTTPStatus(code: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
24 | }
25 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:27:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
25 |
26 | public var url: URL? {
27 | response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
28 | }
29 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:31:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
29 |
30 | public var headers: [HTTPHeader<String>: String] {
31 | response.allHeaderFields.mapKeys { HTTPHeader<String>(name: $0.description) }.compactMapValues { $0 as? String }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
32 | }
33 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:35:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
33 |
34 | public subscript(header header: HTTPHeader<String>) -> String? {
35 | response.value(forHTTPHeaderField: header.name)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
36 | }
37 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:43:27: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
41 | return nil
42 | }
43 | return HTTPCookie.cookies(withResponseHeaderFields: headers, for: url)
| `- error: type 'HTTPCookie' (aka 'AnyObject') has no member 'cookies'
44 | }
45 | }
[27/41] Compiling AsyncHTTP Any.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:15:17: error: generic parameter 'Wrapped' could not be inferred
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
15 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
16 | }
17 | }
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[28/41] Compiling AsyncHTTP Capture.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:15:17: error: generic parameter 'Wrapped' could not be inferred
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
15 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
16 | }
17 | }
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[29/41] Compiling AsyncHTTP Decode.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:15:17: error: generic parameter 'Wrapped' could not be inferred
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
15 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
16 | }
17 | }
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[30/41] Compiling AsyncHTTP FlatMap.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:15:17: error: generic parameter 'Wrapped' could not be inferred
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
15 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
16 | }
17 | }
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[31/41] Compiling AsyncHTTP HTTP.swift
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:17: error: generic parameter 'Wrapped' could not be inferred
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
10 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
11 | }
12 | #endif
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:10:9: error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- note: opaque return type declared here
10 | Loaders.HTTP(loader: self, modify: modify)
| `- error: return type of instance method 'httpLoader(modify:)' requires the types 'Self.Input' and '_' be equivalent
11 | }
12 | #endif
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:15:17: error: generic parameter 'Wrapped' could not be inferred
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
15 | Loaders.HTTP(loader: self, modify: modify)
| |- error: generic parameter 'Wrapped' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
16 | }
17 | }
:
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: 'Wrapped' declared as parameter to type 'Loaders.HTTP'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:29:18: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
29 | self.loader = loader
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
30 | self.modify = modify
31 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:35:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
36 | }
37 | modify?(request, &urlRequest)
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:38:46: error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
36 | }
37 | modify?(request, &urlRequest)
38 | let (data, response) = try await loader.load(urlRequest)
| `- error: generic struct 'HTTP' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:41:34: error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
39 |
40 | guard let response = response as? HTTPURLResponse else {
41 | throw Self.Error.notHTTPURLResponse
| `- error: enum 'Error' requires the types 'Wrapped.Input' and '_' be equivalent
42 | }
43 |
:
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- note: where 'Wrapped.Input' = 'Wrapped.Input'
48 | case invalidRequest
49 | case notHTTPURLResponse
[32/41] Compiling AsyncHTTP AsyncHTTP.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/41] Compiling AsyncHTTP Formatter.swift
[34/41] Compiling AsyncHTTP HTTPRequestFormatter.swift
[35/41] Compiling AsyncHTTP HTTPResponseFormatter.swift
[36/41] Compiling AsyncHTTP Loader.swift
[37/41] Emitting module AsyncHTTP
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:33: error: cannot find type 'URLRequest' in scope
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:9:57: error: cannot find type 'URLRequest' in scope
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
9 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> some HTTPLoader {
| `- error: cannot find type 'URLRequest' in scope
10 | Loaders.HTTP(loader: self, modify: modify)
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:81: error: cannot find type 'URLRequest' in scope
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:14:57: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | public func httpLoader(modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) -> Loaders.HTTP<Self> {
| `- error: cannot find type 'URLRequest' in scope
15 | Loaders.HTTP(loader: self, modify: modify)
16 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:6:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | #endif
5 |
6 | extension Loader where Input == URLRequest, Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | #if compiler(>=5.7)
8 | @_disfavoredOverload
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:26:50: error: cannot find type 'URLRequest' in scope
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
| `- error: cannot find type 'URLRequest' in scope
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:28:67: error: cannot find type 'URLRequest' in scope
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
27 |
28 | public init(loader: Wrapped, modify: ((HTTPRequest, inout URLRequest) -> Void)? = nil) {
| `- error: cannot find type 'URLRequest' in scope
29 | self.loader = loader
30 | self.modify = modify
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Equatable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Equatable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: type 'Loaders.HTTP<Wrapped>.Error' does not conform to protocol 'Hashable'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:47:21: error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
45 | }
46 |
47 | public enum Error: Swift.Error {
| `- error: protocol 'Hashable' is broken; cannot derive conformance for type 'Loaders.HTTP<Wrapped>.Error'
48 | case invalidRequest
49 | case notHTTPURLResponse
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:118: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/HTTP.swift:24:19: error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
22 |
23 | extension Loaders {
24 | public struct HTTP<Wrapped: Loader>: CompositeLoader where Wrapped.Input == URLRequest, Wrapped.Output == (Data, URLResponse) {
| |- error: type 'Loaders.HTTP<Wrapped>' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
25 | private let loader: Wrapped
26 | private let modify: ((HTTPRequest, inout URLRequest) -> Void)?
:
31 | }
32 |
33 | public func load(_ request: HTTPRequest) async throws -> HTTPResponse {
| `- note: candidate has non-matching type '<Wrapped> (HTTPRequest) async throws -> HTTPResponse' [with Input = HTTPRequest, Output = HTTPResponse]
34 | guard var urlRequest = request.urlRequest else {
35 | throw Self.Error.invalidRequest
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:10:10: note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
8 | associatedtype Input
9 | associatedtype Output
10 | func load(_ input: Input) async throws -> Output
| `- note: protocol requires function 'load' with type '(HTTPRequest) async throws -> HTTPResponse'
11 | }
12 | #else
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:21:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
19 | #endif
20 |
21 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:43:33: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
43 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |
45 | init(urlSession: URLSession = .shared) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | self.urlSession = urlSession
47 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:45:40: error: value of type '_' expected to be instance of class or class-constrained type
43 | private let urlSession: URLSession
44 |
45 | init(urlSession: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
46 | self.urlSession = urlSession
47 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:37: error: cannot find type 'URLRequest' in scope
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
50 | try await urlSession.data(for: request)
51 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:49:72: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | public func load(_ request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | try await urlSession.data(for: request)
51 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:42:19: error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
40 |
41 | extension Loaders {
42 | public struct URLSessionData: Loader {
| |- error: type 'Loaders.URLSessionData' does not conform to protocol 'Loader'
| `- note: add stubs for conformance
43 | private let urlSession: URLSession
44 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Loader.swift:8:20: note: protocol requires nested type 'Input'
6 | #if compiler(>=5.7)
7 | @rethrows public protocol Loader<Input, Output> {
8 | associatedtype Input
| `- note: protocol requires nested type 'Input'
9 | associatedtype Output
| `- note: protocol requires nested type 'Output'
10 | func load(_ input: Input) async throws -> Output
11 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Loaders/URLSession.swift:23:40: error: cannot find type 'URLRequest' in scope
21 | extension URLSession {
22 | #if compiler(>=5.7)
23 | public var dataLoader: some Loader<URLRequest, (Data, URLResponse)> {
| `- error: cannot find type 'URLRequest' in scope
24 | Loaders.URLSessionData(urlSession: self)
25 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:60:30: error: cannot find type 'URLRequest' in scope
58 | }
59 |
60 | internal var urlRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
61 | guard let url = url else {
62 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:141:40: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | public mutating func set(cookies: [HTTPCookie]) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let newHeaders = HTTPCookie.requestHeaderFields(with: cookies).mapKeys(HTTPHeader<String>.init(name:))
143 | headers.merge(newHeaders) { _, new in new }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:146:38: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 | }
145 |
146 | public mutating func add(cookie: HTTPCookie) {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 | addCookie(name: cookie.name, value: cookie.value)
148 | }
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:186:37: warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
184 | }
185 |
186 | extension URLComponents: @unchecked Sendable {}
| `- warning: conformance of 'URLComponents' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
187 | extension AnyHashable: @unchecked Sendable {}
188 |
FoundationEssentials.URLComponents:2:15: note: 'URLComponents' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public struct URLComponents : Hashable, Equatable, Sendable {
| `- note: 'URLComponents' declares conformance to protocol 'Sendable' here
3 | public init()
4 | public init?(url: __shared URL, resolvingAgainstBaseURL resolve: Bool)
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:1: warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'AnyHashable' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 |
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequest.swift:187:35: warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
185 |
186 | extension URLComponents: @unchecked Sendable {}
187 | extension AnyHashable: @unchecked Sendable {}
| `- warning: conformance of 'AnyHashable' to protocol 'Sendable' was already stated in the type's module 'Swift'
188 |
Swift.AnyHashable:2:11: note: 'AnyHashable' declares conformance to protocol 'Sendable' here
1 | @available(*, unavailable)
2 | extension AnyHashable : Sendable {
| `- note: 'AnyHashable' declares conformance to protocol 'Sendable' here
3 | }
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPRequestBody.swift:113:28: warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
111 | }
112 |
113 | extension Data: @unchecked Sendable {}
| `- warning: conformance of 'Data' to protocol 'Sendable' was already stated in the type's module 'FoundationEssentials'
114 |
FoundationEssentials.Data:2:23: note: 'Data' declares conformance to protocol 'Sendable' here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
| `- note: 'Data' declares conformance to protocol 'Sendable' here
3 | public typealias Index = Int
4 | public typealias Indices = Range<Int>
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:11:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | public struct HTTPResponse {
10 | public let request: HTTPRequest
11 | public let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | public let body: Data
13 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Model/HTTPResponse.swift:38:26: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | }
37 |
38 | public var cookies: [HTTPCookie]? {
| `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | let headers = self.headers.mapKeys(\.name)
40 | guard let url = url, !headers.isEmpty else {
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
| `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:14:35: error: cannot find type 'DispatchTimeInterval' in scope
12 | }
13 |
14 | public init?(maximumDuration: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
15 | guard let duration = TimeInterval(dispatchTimeInterval: maximumDuration) else {
16 | return nil
/host/spi-builder-workspace/Sources/AsyncHTTP/Plugins/Timeout.swift:103:33: error: cannot find type 'DispatchTimeInterval' in scope
101 |
102 | extension TimeInterval {
103 | init?(dispatchTimeInterval: DispatchTimeInterval) {
| `- error: cannot find type 'DispatchTimeInterval' in scope
104 | switch dispatchTimeInterval {
105 | case .seconds(let value):
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[38/41] Compiling AsyncHTTP Combine.swift
[39/41] Compiling AsyncHTTP Converted.swift
[40/41] Compiling AsyncHTTP HTTPFormattible.swift
[41/41] Compiling AsyncHTTP Sorted.swift
BUILD FAILURE 6.3 wasm