The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-http, reference main (8b5739), with Swift 6.3 for Wasm on 13 Apr 2026 19:48:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BinaryBirds/swift-http.git
Reference: main
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/BinaryBirds/swift-http
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8b57396 Merge pull request #8 from dankinsoid/fix_init
Cloned https://github.com/BinaryBirds/swift-http.git
Revision (git rev-parse @):
8b573967d26ef5401af2507aa5546da5f36235cc
SUCCESS checkout https://github.com/BinaryBirds/swift-http.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/BinaryBirds/swift-http.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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-log
[1/6561] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.69s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.11.0 (1.45s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.11.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling Logging LogEvent.swift
[5/9] Compiling Logging MetadataProvider.swift
[6/9] Emitting module Logging
[7/9] Compiling Logging Locks.swift
[8/9] Compiling Logging LogHandler.swift
[9/9] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/37] Emitting module SwiftHttp
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     /// - Throws: `HttpError` if something was wrong with the tuple values
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
52 |             throw HttpError.invalidResponse
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/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private let loggerLabel = "com.binarybirds.swift-http"
 19 |
 20 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     let logger: Logger
 22 |
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/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
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/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: value of type '_' expected to be instance of class or class-constrained type
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
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/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: value of type '_' expected to be instance of class or class-constrained type
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
193 |         with urlRequest: URLRequest,
    |                          `- error: cannot find type 'URLRequest' in scope
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
    |             `- error: cannot find type 'URLRequest' in scope
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     }
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
    |                                    `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |         try await withCheckedThrowingContinuation { continuation in
199 |             method(urlRequest) { t, response, error in
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
[12/40] Compiling SwiftHttp HttpDataDecoder.swift
[13/40] Compiling SwiftHttp HttpDataEncoder.swift
[14/40] Compiling SwiftHttp HttpDecodablePipeline.swift
[15/40] Compiling SwiftHttp HttpEncodablePipeline.swift
[16/40] Compiling SwiftHttp Data+Logger.swift
[17/40] Compiling SwiftHttp HttpClient.swift
[18/40] Compiling SwiftHttp HttpCodablePipeline.swift
[19/40] Compiling SwiftHttp HttpCodablePipelineCollection.swift
[20/40] Compiling SwiftHttp HttpUrl.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private let loggerLabel = "com.binarybirds.swift-http"
 19 |
 20 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     let logger: Logger
 22 |
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/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
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/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: value of type '_' expected to be instance of class or class-constrained type
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
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/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: value of type '_' expected to be instance of class or class-constrained type
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
193 |         with urlRequest: URLRequest,
    |                          `- error: cannot find type 'URLRequest' in scope
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
    |             `- error: cannot find type 'URLRequest' in scope
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     }
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
    |                                    `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |         try await withCheckedThrowingContinuation { continuation in
199 |             method(urlRequest) { t, response, error in
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/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         let urlRequest = req.urlRequest
 71 |         logger.info(.init(stringLiteral: urlRequest.curlString))
 72 |         let res: (Data, URLResponse)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         #if os(Linux)
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/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 76 |         #else
 77 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
 78 |                 res = try await session.data(for: urlRequest)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 79 |             }
 80 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 79 |             }
 80 |             else {
 81 |                 res = try await asyncMethod(with: urlRequest, session.dataTask)
    |                                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |             }
 83 |         #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |         }
111 |         logger.info(.init(stringLiteral: urlRequest.curlString))
112 |         let res: (Data, URLResponse)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         #if os(Linux)
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/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 |         #else
119 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 |                 res = try await session.upload(
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 |                     for: urlRequest,
122 |                     from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 |                     for: urlRequest,
122 |                     from: data,
123 |                     delegate: nil
    |                               `- error: 'nil' requires a contextual type
124 |                 )
125 |             }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 |             else {
127 |                 res = try await asyncMethod(with: urlRequest) {
128 |                     session.uploadTask(
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 |                         with: $0,
130 |                         from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |         let urlRequest = req.urlRequest
160 |         logger.info(.init(stringLiteral: urlRequest.curlString))
161 |         let res: (URL, URLResponse)
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         #if os(Linux)
163 |             res = try await asyncMethod(with: urlRequest, session.downloadTask)
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/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 |         #else
165 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 |                 res = try await session.download(for: urlRequest, delegate: nil)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 |             }
168 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 |         #else
165 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 |                 res = try await session.download(for: urlRequest, delegate: nil)
    |                                                                             `- error: 'nil' requires a contextual type
167 |             }
168 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 |                 res = try await asyncMethod(
170 |                     with: urlRequest,
171 |                     session.downloadTask
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 |                 )
173 |             }
[21/40] Compiling SwiftHttp URLRequest+cURL.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private let loggerLabel = "com.binarybirds.swift-http"
 19 |
 20 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     let logger: Logger
 22 |
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/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
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/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: value of type '_' expected to be instance of class or class-constrained type
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
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/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: value of type '_' expected to be instance of class or class-constrained type
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
193 |         with urlRequest: URLRequest,
    |                          `- error: cannot find type 'URLRequest' in scope
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
    |             `- error: cannot find type 'URLRequest' in scope
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     }
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
    |                                    `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |         try await withCheckedThrowingContinuation { continuation in
199 |             method(urlRequest) { t, response, error in
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/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         let urlRequest = req.urlRequest
 71 |         logger.info(.init(stringLiteral: urlRequest.curlString))
 72 |         let res: (Data, URLResponse)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         #if os(Linux)
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/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 76 |         #else
 77 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
 78 |                 res = try await session.data(for: urlRequest)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 79 |             }
 80 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 79 |             }
 80 |             else {
 81 |                 res = try await asyncMethod(with: urlRequest, session.dataTask)
    |                                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |             }
 83 |         #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |         }
111 |         logger.info(.init(stringLiteral: urlRequest.curlString))
112 |         let res: (Data, URLResponse)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         #if os(Linux)
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/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 |         #else
119 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 |                 res = try await session.upload(
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 |                     for: urlRequest,
122 |                     from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 |                     for: urlRequest,
122 |                     from: data,
123 |                     delegate: nil
    |                               `- error: 'nil' requires a contextual type
124 |                 )
125 |             }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 |             else {
127 |                 res = try await asyncMethod(with: urlRequest) {
128 |                     session.uploadTask(
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 |                         with: $0,
130 |                         from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |         let urlRequest = req.urlRequest
160 |         logger.info(.init(stringLiteral: urlRequest.curlString))
161 |         let res: (URL, URLResponse)
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         #if os(Linux)
163 |             res = try await asyncMethod(with: urlRequest, session.downloadTask)
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/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 |         #else
165 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 |                 res = try await session.download(for: urlRequest, delegate: nil)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 |             }
168 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 |         #else
165 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 |                 res = try await session.download(for: urlRequest, delegate: nil)
    |                                                                             `- error: 'nil' requires a contextual type
167 |             }
168 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 |                 res = try await asyncMethod(
170 |                     with: urlRequest,
171 |                     session.downloadTask
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 |                 )
173 |             }
[22/40] Compiling SwiftHttp UrlSessionHttpClient.swift
/host/spi-builder-workspace/Sources/SwiftHttp/URLRequest+cURL.swift:14:11: error: cannot find type 'URLRequest' in scope
12 | #endif
13 |
14 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
15 |
16 |     /// Returns the curl command representation of a URLRequest
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:20:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private let loggerLabel = "com.binarybirds.swift-http"
 19 |
 20 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     let logger: Logger
 22 |
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/SwiftHttp/UrlSessionHttpClient.swift:32:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
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/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:32:32: error: value of type '_' expected to be instance of class or class-constrained type
 30 |     ///
 31 |     public init(
 32 |         session: URLSession = .shared,
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
 33 |         logLevel: Logger.Level = .critical
 34 |     ) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
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/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:52:40: error: value of type '_' expected to be instance of class or class-constrained type
 50 |     @_disfavoredOverload
 51 |     @available(*, deprecated, message: "Use init(session:logLevel:) instead.")
 52 |     public init(session: URLSession = .shared, log: Bool = false) {
    |                                        `- error: value of type '_' expected to be instance of class or class-constrained type
 53 |         var logger = Logger(label: loggerLabel)
 54 |         logger.logLevel = log ? .info : .critical
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:193:26: error: cannot find type 'URLRequest' in scope
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
193 |         with urlRequest: URLRequest,
    |                          `- error: cannot find type 'URLRequest' in scope
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:195:13: error: cannot find type 'URLRequest' in scope
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
    |             `- error: cannot find type 'URLRequest' in scope
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:192:36: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     }
191 |
192 |     private func asyncMethod<T, S: URLSessionTask>(
    |                                    `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         with urlRequest: URLRequest,
194 |         _ method: @escaping (
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:197:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 |             URLRequest, @escaping @Sendable (T?, URLResponse?, Error?) -> Void
196 |         ) -> S
197 |     ) async throws -> (T, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |         try await withCheckedThrowingContinuation { continuation in
199 |             method(urlRequest) { t, response, error in
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/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:72:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |         let urlRequest = req.urlRequest
 71 |         logger.info(.init(stringLiteral: urlRequest.curlString))
 72 |         let res: (Data, URLResponse)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |         #if os(Linux)
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/SwiftHttp/UrlSessionHttpClient.swift:78:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 76 |         #else
 77 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
 78 |                 res = try await session.data(for: urlRequest)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 79 |             }
 80 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:81:71: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 79 |             }
 80 |             else {
 81 |                 res = try await asyncMethod(with: urlRequest, session.dataTask)
    |                                                                       `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 82 |             }
 83 |         #endif
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:112:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |         }
111 |         logger.info(.init(stringLiteral: urlRequest.curlString))
112 |         let res: (Data, URLResponse)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |
114 |         #if os(Linux)
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/SwiftHttp/UrlSessionHttpClient.swift:120:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
118 |         #else
119 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
120 |                 res = try await session.upload(
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
121 |                     for: urlRequest,
122 |                     from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:123:31: error: 'nil' requires a contextual type
121 |                     for: urlRequest,
122 |                     from: data,
123 |                     delegate: nil
    |                               `- error: 'nil' requires a contextual type
124 |                 )
125 |             }
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:128:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
126 |             else {
127 |                 res = try await asyncMethod(with: urlRequest) {
128 |                     session.uploadTask(
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
129 |                         with: $0,
130 |                         from: data,
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:161:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |         let urlRequest = req.urlRequest
160 |         logger.info(.init(stringLiteral: urlRequest.curlString))
161 |         let res: (URL, URLResponse)
    |                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |         #if os(Linux)
163 |             res = try await asyncMethod(with: urlRequest, session.downloadTask)
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/SwiftHttp/UrlSessionHttpClient.swift:166:41: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
164 |         #else
165 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 |                 res = try await session.download(for: urlRequest, delegate: nil)
    |                                         `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
167 |             }
168 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:166:77: error: 'nil' requires a contextual type
164 |         #else
165 |             if #available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) {
166 |                 res = try await session.download(for: urlRequest, delegate: nil)
    |                                                                             `- error: 'nil' requires a contextual type
167 |             }
168 |             else {
/host/spi-builder-workspace/Sources/SwiftHttp/UrlSessionHttpClient.swift:171:29: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
169 |                 res = try await asyncMethod(
170 |                     with: urlRequest,
171 |                     session.downloadTask
    |                             `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
172 |                 )
173 |             }
[23/40] Compiling SwiftHttp HttpRawPipeline.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     /// - Throws: `HttpError` if something was wrong with the tuple values
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
52 |             throw HttpError.invalidResponse
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/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                      `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 |             throw HttpError.invalidResponse
53 |         }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |             throw HttpError.invalidResponse
53 |         }
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/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 |         }
54 |         var headers: [HttpHeaderKey: String] = [:]
55 |         for header in response.allHeaderFields {
   |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 |             let key = String(describing: header.key)
57 |             let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 |             headers[headerKey] = value
60 |         }
61 |         guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         else {
63 |             throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
34 |         var request = URLRequest(url: url.url)
   |                       `- error: cannot find 'URLRequest' in scope
35 |         request.httpMethod = method.rawValue.uppercased()
36 |         request.httpBody = body
[24/40] Compiling SwiftHttp HttpRawRequest.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     /// - Throws: `HttpError` if something was wrong with the tuple values
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
52 |             throw HttpError.invalidResponse
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/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                      `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 |             throw HttpError.invalidResponse
53 |         }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |             throw HttpError.invalidResponse
53 |         }
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/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 |         }
54 |         var headers: [HttpHeaderKey: String] = [:]
55 |         for header in response.allHeaderFields {
   |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 |             let key = String(describing: header.key)
57 |             let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 |             headers[headerKey] = value
60 |         }
61 |         guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         else {
63 |             throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
34 |         var request = URLRequest(url: url.url)
   |                       `- error: cannot find 'URLRequest' in scope
35 |         request.httpMethod = method.rawValue.uppercased()
36 |         request.httpBody = body
[25/40] Compiling SwiftHttp HttpRawResponse.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     /// - Throws: `HttpError` if something was wrong with the tuple values
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
52 |             throw HttpError.invalidResponse
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/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                      `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 |             throw HttpError.invalidResponse
53 |         }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |             throw HttpError.invalidResponse
53 |         }
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/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 |         }
54 |         var headers: [HttpHeaderKey: String] = [:]
55 |         for header in response.allHeaderFields {
   |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 |             let key = String(describing: header.key)
57 |             let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 |             headers[headerKey] = value
60 |         }
61 |         guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         else {
63 |             throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
34 |         var request = URLRequest(url: url.url)
   |                       `- error: cannot find 'URLRequest' in scope
35 |         request.httpMethod = method.rawValue.uppercased()
36 |         request.httpBody = body
[26/40] Compiling SwiftHttp HttpRequest.swift
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:50:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     /// - Throws: `HttpError` if something was wrong with the tuple values
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
52 |             throw HttpError.invalidResponse
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/SwiftHttp/HttpRawResponse.swift:51:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                      `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
52 |             throw HttpError.invalidResponse
53 |         }
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:51:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 |     ///
50 |     public init(_ tuple: (Data, URLResponse)) throws {
51 |         guard let response = tuple.1 as? HTTPURLResponse else {
   |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |             throw HttpError.invalidResponse
53 |         }
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/SwiftHttp/HttpRawResponse.swift:55:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
53 |         }
54 |         var headers: [HttpHeaderKey: String] = [:]
55 |         for header in response.allHeaderFields {
   |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
56 |             let key = String(describing: header.key)
57 |             let value = String(describing: header.value)
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRawResponse.swift:61:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
59 |             headers[headerKey] = value
60 |         }
61 |         guard let statusCode = HttpStatusCode(rawValue: response.statusCode)
   |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
62 |         else {
63 |             throw HttpError.unknownStatusCode
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:33:28: error: cannot find type 'URLRequest' in scope
31 |
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
   |                            `- error: cannot find type 'URLRequest' in scope
34 |         var request = URLRequest(url: url.url)
35 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/Sources/SwiftHttp/HttpRequest.swift:34:23: error: cannot find 'URLRequest' in scope
32 |     /// Converts a HttpRequest to a URLRequest
33 |     public var urlRequest: URLRequest {
34 |         var request = URLRequest(url: url.url)
   |                       `- error: cannot find 'URLRequest' in scope
35 |         request.httpMethod = method.rawValue.uppercased()
36 |         request.httpBody = body
[27/40] Compiling SwiftHttp HttpError.swift
[28/40] Compiling SwiftHttp HttpHeaderKey.swift
[29/40] Compiling SwiftHttp HttpHeaderValidator.swift
[30/40] Compiling SwiftHttp HttpMethod.swift
[31/40] Compiling SwiftHttp HttpResponseDecoder.swift
[32/40] Compiling SwiftHttp HttpResponseTransformer.swift
[33/40] Compiling SwiftHttp HttpResponseValidation.swift
[34/40] Compiling SwiftHttp HttpResponseValidator.swift
[35/40] Compiling SwiftHttp HttpStatusCode.swift
[36/40] Compiling SwiftHttp HttpStatusCodeValidator.swift
[37/40] Compiling SwiftHttp HttpRequestEncoder.swift
[38/40] Compiling SwiftHttp HttpRequestPipeline.swift
[39/40] Compiling SwiftHttp HttpRequestTransformer.swift
[40/40] Compiling SwiftHttp HttpResponse.swift
BUILD FAILURE 6.3 wasm