Build Information
Failed to build async-http-client, reference v1.4.6 (9a5624
), with Swift 6.0 for Linux on 5 Nov 2024 20:04:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/async-http-client.git
Reference: v1.4.6
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/igor11191708/async-http-client
* tag v1.4.6 -> FETCH_HEAD
HEAD is now at 9a56240 support for new retry
Cloned https://github.com/igor11191708/async-http-client.git
Revision (git rev-parse @):
9a56240b21baff71f5399194a1f2af9ab8c4c076
SUCCESS checkout https://github.com/igor11191708/async-http-client.git at v1.4.6
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/igor11191708/async-http-client.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/The-Igor/retry-policy-service.git
[1/95] Fetching retry-policy-service
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.18s)
Computing version for https://github.com/The-Igor/retry-policy-service.git
Computed https://github.com/The-Igor/retry-policy-service.git at 1.0.1 (0.48s)
Creating working copy for https://github.com/The-Igor/retry-policy-service.git
Working copy of https://github.com/The-Igor/retry-policy-service.git resolved at 1.0.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling retry_policy_service DispatchTimeInterval.swift
[5/7] Compiling retry_policy_service Strategy.swift
[6/7] Compiling retry_policy_service RetryService.swift
[7/7] Emitting module retry_policy_service
[9/29] Compiling async_http_client IReader.swift
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// Validate
16 | /// - Parameter data: URLResponse
17 | func validate(_ response : URLResponse, with data : Data?) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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
[10/29] Compiling async_http_client IWriter.swift
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// Validate
16 | /// - Parameter data: URLResponse
17 | func validate(_ response : URLResponse, with data : Data?) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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
[11/29] Compiling async_http_client IValidate.swift
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// Validate
16 | /// - Parameter data: URLResponse
17 | func validate(_ response : URLResponse, with data : Data?) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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/31] Compiling async_http_client RequestHelper.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:30:19: error: cannot find 'URLRequest' in scope
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 |
32 | //headers
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:66:19: error: cannot find 'URLRequest' in scope
64 | ) throws -> URLRequest {
65 |
66 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
67 |
68 | //headers
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) async throws -> (Data, URLResponse)
21 | {
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/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
20 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | {
22 | let service = RetryService(strategy: strategy)
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/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> (Data, URLResponse)
21 | {
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:26:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 | for delay in service.dropLast(){
25 | do{
26 | return try await session.data(for: request, delegate: taskDelegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 | }catch{
28 | #if DEBUG
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:41:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |
40 | /// one more time to let the error to propagate if it fails the last time
41 | return try await session.data(for: request, delegate: taskDelegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 | }
43 |
[13/31] Compiling async_http_client SendHelper.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:30:19: error: cannot find 'URLRequest' in scope
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 |
32 | //headers
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:66:19: error: cannot find 'URLRequest' in scope
64 | ) throws -> URLRequest {
65 |
66 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
67 |
68 | //headers
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) async throws -> (Data, URLResponse)
21 | {
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/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
20 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | {
22 | let service = RetryService(strategy: strategy)
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/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> (Data, URLResponse)
21 | {
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:26:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 | for delay in service.dropLast(){
25 | do{
26 | return try await session.data(for: request, delegate: taskDelegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 | }catch{
28 | #if DEBUG
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:41:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |
40 | /// one more time to let the error to propagate if it fails the last time
41 | return try await session.data(for: request, delegate: taskDelegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 | }
43 |
[14/31] Compiling async_http_client UrlHelper.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:30:19: error: cannot find 'URLRequest' in scope
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 |
32 | //headers
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:66:19: error: cannot find 'URLRequest' in scope
64 | ) throws -> URLRequest {
65 |
66 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
67 |
68 | //headers
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) async throws -> (Data, URLResponse)
21 | {
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/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
20 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | {
22 | let service = RetryService(strategy: strategy)
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/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> (Data, URLResponse)
21 | {
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:26:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
24 | for delay in service.dropLast(){
25 | do{
26 | return try await session.data(for: request, delegate: taskDelegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
27 | }catch{
28 | #if DEBUG
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:41:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |
40 | /// one more time to let the error to propagate if it fails the last time
41 | return try await session.data(for: request, delegate: taskDelegate)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 | }
43 |
[15/31] Compiling async_http_client IConfiguration.swift
[16/31] Compiling async_http_client IProxy.swift
[17/31] Compiling async_http_client IResponse.swift
[18/31] Compiling async_http_client JsonReader.swift
[19/31] Compiling async_http_client Validate.swift
[20/31] Compiling async_http_client HttpMethod.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 | }
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/async-http-client/proxy/http/error/Errors.swift:13:14: warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
14 | }
15 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | // A protocol that defines methods that URL session instances call on their delegates to handle task-level events
11 | public protocol ITaskDelegate: URLSessionTaskDelegate{
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | }
[21/31] Compiling async_http_client Errors.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 | }
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/async-http-client/proxy/http/error/Errors.swift:13:14: warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
14 | }
15 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | // A protocol that defines methods that URL session instances call on their delegates to handle task-level events
11 | public protocol ITaskDelegate: URLSessionTaskDelegate{
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | }
[22/31] Compiling async_http_client ITaskDelegate.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 | }
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/async-http-client/proxy/http/error/Errors.swift:13:14: warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
14 | }
15 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | // A protocol that defines methods that URL session instances call on their delegates to handle task-level events
11 | public protocol ITaskDelegate: URLSessionTaskDelegate{
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | }
[23/31] Compiling async_http_client Configuration.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Get session
22 | /// @unchecked Sendable
23 | public var getSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | session
25 | }
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/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// An object that coordinates a group of related, network data transfer task
39 | /// @unchecked Sendable
40 | public let session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | // MARK: - Life circle
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/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
56 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
57 | delegateQueue queue: OperationQueue? = nil
58 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | writer: W,
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | delegate: URLSessionDelegate? = nil,
57 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | writer: W,
73 | baseURL: URL,
74 | session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | ) {
76 | self.reader = reader
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/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
105 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
106 | delegateQueue queue: OperationQueue? = nil
107 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | init(
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | delegate: URLSessionDelegate? = nil,
106 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:62:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
60 | self.writer = writer
61 | self.baseURL = baseURL
62 | self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 | }
64 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:94:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
92 | self.writer = JsonWriter()
93 | self.baseURL = baseURL
94 | self.session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
95 | }
96 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:111:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
109 | self.writer = JsonWriter()
110 | self.baseURL = baseURL
111 | self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
112 | }
113 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | retry : UInt = 1,
27 | taskDelegate: ITaskDelegate? = nil
28 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let request = try buildURLRequest(for: url, query: query, headers: headers)
30 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | retry : UInt = 1,
51 | taskDelegate: ITaskDelegate? = nil
52 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let request = try buildURLRequest(for: url, method: .post, query: query, body: body, headers: headers)
54 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | retry : UInt = 1,
75 | taskDelegate: ITaskDelegate? = nil
76 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | let request = try buildURLRequest(for: url, method: .put, query: query, body: body, headers: headers)
78 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | retry : UInt = 1,
98 | taskDelegate: ITaskDelegate? = nil
99 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | let request = try buildURLRequest(for: url, method: .delete, query: query, headers: headers)
101 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
[24/31] Compiling async_http_client Direct.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Get session
22 | /// @unchecked Sendable
23 | public var getSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | session
25 | }
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/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// An object that coordinates a group of related, network data transfer task
39 | /// @unchecked Sendable
40 | public let session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | // MARK: - Life circle
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/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
56 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
57 | delegateQueue queue: OperationQueue? = nil
58 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | writer: W,
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | delegate: URLSessionDelegate? = nil,
57 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | writer: W,
73 | baseURL: URL,
74 | session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | ) {
76 | self.reader = reader
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/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
105 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
106 | delegateQueue queue: OperationQueue? = nil
107 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | init(
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | delegate: URLSessionDelegate? = nil,
106 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:62:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
60 | self.writer = writer
61 | self.baseURL = baseURL
62 | self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 | }
64 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:94:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
92 | self.writer = JsonWriter()
93 | self.baseURL = baseURL
94 | self.session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
95 | }
96 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:111:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
109 | self.writer = JsonWriter()
110 | self.baseURL = baseURL
111 | self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
112 | }
113 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | retry : UInt = 1,
27 | taskDelegate: ITaskDelegate? = nil
28 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let request = try buildURLRequest(for: url, query: query, headers: headers)
30 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | retry : UInt = 1,
51 | taskDelegate: ITaskDelegate? = nil
52 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let request = try buildURLRequest(for: url, method: .post, query: query, body: body, headers: headers)
54 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | retry : UInt = 1,
75 | taskDelegate: ITaskDelegate? = nil
76 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | let request = try buildURLRequest(for: url, method: .put, query: query, body: body, headers: headers)
78 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | retry : UInt = 1,
98 | taskDelegate: ITaskDelegate? = nil
99 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | let request = try buildURLRequest(for: url, method: .delete, query: query, headers: headers)
101 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
[25/31] Compiling async_http_client Http.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Get session
22 | /// @unchecked Sendable
23 | public var getSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | session
25 | }
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/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// An object that coordinates a group of related, network data transfer task
39 | /// @unchecked Sendable
40 | public let session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | // MARK: - Life circle
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/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
56 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
57 | delegateQueue queue: OperationQueue? = nil
58 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | writer: W,
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | delegate: URLSessionDelegate? = nil,
57 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | writer: W,
73 | baseURL: URL,
74 | session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | ) {
76 | self.reader = reader
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/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
105 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
106 | delegateQueue queue: OperationQueue? = nil
107 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | init(
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | delegate: URLSessionDelegate? = nil,
106 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:62:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
60 | self.writer = writer
61 | self.baseURL = baseURL
62 | self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 | }
64 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:94:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
92 | self.writer = JsonWriter()
93 | self.baseURL = baseURL
94 | self.session = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
95 | }
96 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:111:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
109 | self.writer = JsonWriter()
110 | self.baseURL = baseURL
111 | self.session = URLSession(configuration: sessionConfiguration, delegate: delegate, delegateQueue: queue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
112 | }
113 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | retry : UInt = 1,
27 | taskDelegate: ITaskDelegate? = nil
28 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let request = try buildURLRequest(for: url, query: query, headers: headers)
30 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | retry : UInt = 1,
51 | taskDelegate: ITaskDelegate? = nil
52 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let request = try buildURLRequest(for: url, method: .post, query: query, body: body, headers: headers)
54 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | retry : UInt = 1,
75 | taskDelegate: ITaskDelegate? = nil
76 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | let request = try buildURLRequest(for: url, method: .put, query: query, body: body, headers: headers)
78 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | retry : UInt = 1,
98 | taskDelegate: ITaskDelegate? = nil
99 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | let request = try buildURLRequest(for: url, method: .delete, query: query, headers: headers)
101 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
[26/31] Compiling async_http_client Status.swift
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:18:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public typealias Predicate = (Int) -> Bool
17 |
18 | public typealias ErrorFn = @Sendable (Int, URLResponse, Data?) -> Error?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Validate by exact value
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/async-http-client/validate/type/Status.swift:54:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | /// - response: URLResponse
53 | /// - data: Received data
54 | func validate(_ response : URLResponse, with data : Data?) throws{
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
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/async-http-client/validate/type/Status.swift:83:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
82 | public func validateStatus(
83 | _ response : URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | by rule : Http.Validate.Status,
85 | with data : Data? = nil
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/async-http-client/validate/type/Status.swift:100:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
99 | public func validateStatus(
100 | _ response : URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | by rules : [Http.Validate.Status],
102 | with data : Data? = nil
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/async-http-client/validate/type/Status.swift:112:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 | fileprivate func err(
112 | _ status: Int?, _ response : URLResponse, with data : Data?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | )throws{
114 | throw Http.Errors.status(status, response, data)
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/async-http-client/validate/type/Status.swift:56:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
54 | func validate(_ response : URLResponse, with data : Data?) throws{
55 |
56 | guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
57 |
58 | switch(self){
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:56:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 | func validate(_ response : URLResponse, with data : Data?) throws{
55 |
56 | guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
57 |
58 | switch(self){
[27/31] Compiling async_http_client JsonWriter.swift
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:18:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public typealias Predicate = (Int) -> Bool
17 |
18 | public typealias ErrorFn = @Sendable (Int, URLResponse, Data?) -> Error?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Validate by exact value
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/async-http-client/validate/type/Status.swift:54:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | /// - response: URLResponse
53 | /// - data: Received data
54 | func validate(_ response : URLResponse, with data : Data?) throws{
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
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/async-http-client/validate/type/Status.swift:83:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
82 | public func validateStatus(
83 | _ response : URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | by rule : Http.Validate.Status,
85 | with data : Data? = nil
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/async-http-client/validate/type/Status.swift:100:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
99 | public func validateStatus(
100 | _ response : URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | by rules : [Http.Validate.Status],
102 | with data : Data? = nil
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/async-http-client/validate/type/Status.swift:112:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 | fileprivate func err(
112 | _ status: Int?, _ response : URLResponse, with data : Data?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | )throws{
114 | throw Http.Errors.status(status, response, data)
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/async-http-client/validate/type/Status.swift:56:38: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
54 | func validate(_ response : URLResponse, with data : Data?) throws{
55 |
56 | guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
57 |
58 | switch(self){
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:56:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
54 | func validate(_ response : URLResponse, with data : Data?) throws{
55 |
56 | guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
57 |
58 | switch(self){
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/31] Emitting module async_http_client
/host/spi-builder-workspace/Sources/async-http-client/protocol/validate/IValidate.swift:17:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | /// Validate
16 | /// - Parameter data: URLResponse
17 | func validate(_ response : URLResponse, with data : Data?) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | }
19 |
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/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:19:17: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | ) async throws -> (Data, URLResponse)
21 | {
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/async-http-client/proxy/helper/SendHelper.swift:20:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
20 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | {
22 | let service = RetryService(strategy: strategy)
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/async-http-client/proxy/helper/SendHelper.swift:19:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
19 | _ session : URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | ) async throws -> (Data, URLResponse)
21 | {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:23:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Get session
22 | /// @unchecked Sendable
23 | public var getSession: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | session
25 | }
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/async-http-client/proxy/http/Configuration.swift:40:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// An object that coordinates a group of related, network data transfer task
39 | /// @unchecked Sendable
40 | public let session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | // MARK: - Life circle
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/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
56 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
57 | delegateQueue queue: OperationQueue? = nil
58 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:55:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | writer: W,
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | delegate: URLSessionDelegate? = nil,
57 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:74:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | writer: W,
73 | baseURL: URL,
74 | session : URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | ) {
76 | self.reader = reader
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/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
105 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
106 | delegateQueue queue: OperationQueue? = nil
107 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:104:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | init(
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | delegate: URLSessionDelegate? = nil,
106 | delegateQueue queue: OperationQueue? = nil
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Direct.swift:28:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | retry : UInt = 1,
27 | taskDelegate: ITaskDelegate? = nil
28 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | let request = try buildURLRequest(for: url, query: query, headers: headers)
30 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:52:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | retry : UInt = 1,
51 | taskDelegate: ITaskDelegate? = nil
52 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | let request = try buildURLRequest(for: url, method: .post, query: query, body: body, headers: headers)
54 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:76:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | retry : UInt = 1,
75 | taskDelegate: ITaskDelegate? = nil
76 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | let request = try buildURLRequest(for: url, method: .put, query: query, body: body, headers: headers)
78 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Direct.swift:99:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | retry : UInt = 1,
98 | taskDelegate: ITaskDelegate? = nil
99 | ) async throws -> (Data, URLResponse){
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | let request = try buildURLRequest(for: url, method: .delete, query: query, headers: headers)
101 | let strategy = RetryService.Strategy.exponential(retry: retry)
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/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
174 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
175 | public func send<T>(
176 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
177 | retry strategy : RetryService.Strategy = .exponential(),
178 | _ validate : [Http.Validate] = [.status(200)],
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: cannot find type 'URLRequest' in scope
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
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
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:214:17: warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Get default strategy for retries
214 | fileprivate let strategy : (UInt) -> RetryService.Strategy = { retry in
| |- warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'strategy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | .exponential(retry: retry)
216 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Request
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/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Request
33 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 |
35 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
46 | data: Data,
47 | _ urlRresponse: URLResponse,
48 | _ urlRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
49 | {
50 | self.value = value
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | value: T,
46 | data: Data,
47 | _ urlRresponse: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ urlRequest: URLRequest)
49 | {
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/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
31 |
32 | /// Request
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/error/Errors.swift:13:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 | }
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/async-http-client/proxy/http/error/Errors.swift:13:14: warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
11 |
12 | enum Errors : Error{
13 | case status(Int?, URLResponse, Data?)
| `- warning: associated value 'status' of 'Sendable'-conforming enum 'Errors' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
14 | }
15 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/protocol/ITaskDelegate.swift:11:32: error: cannot find type 'URLSessionTaskDelegate' in scope
9 |
10 | // A protocol that defines methods that URL session instances call on their delegates to handle task-level events
11 | public protocol ITaskDelegate: URLSessionTaskDelegate{
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
12 |
13 | }
/host/spi-builder-workspace/Sources/async-http-client/validate/type/Status.swift:18:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | public typealias Predicate = (Int) -> Bool
17 |
18 | public typealias ErrorFn = @Sendable (Int, URLResponse, Data?) -> Error?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Validate by exact value
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/async-http-client/validate/type/Status.swift:54:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | /// - response: URLResponse
53 | /// - data: Received data
54 | func validate(_ response : URLResponse, with data : Data?) throws{
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | guard let status = (response as? HTTPURLResponse)?.statusCode else{ return try err(nil, response, with: data) }
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/async-http-client/validate/type/Status.swift:83:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
82 | public func validateStatus(
83 | _ response : URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | by rule : Http.Validate.Status,
85 | with data : Data? = nil
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/async-http-client/validate/type/Status.swift:100:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
98 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
99 | public func validateStatus(
100 | _ response : URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | by rules : [Http.Validate.Status],
102 | with data : Data? = nil
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/async-http-client/validate/type/Status.swift:112:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 | fileprivate func err(
112 | _ status: Int?, _ response : URLResponse, with data : Data?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | )throws{
114 | throw Http.Errors.status(status, response, data)
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
[29/31] Compiling async_http_client Proxy+.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
56 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
57 | delegateQueue queue: OperationQueue? = nil
58 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
105 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
106 | delegateQueue queue: OperationQueue? = nil
107 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
174 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
175 | public func send<T>(
176 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
177 | retry strategy : RetryService.Strategy = .exponential(),
178 | _ validate : [Http.Validate] = [.status(200)],
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: cannot find type 'URLRequest' in scope
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
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
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:214:17: warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Get default strategy for retries
214 | fileprivate let strategy : (UInt) -> RetryService.Strategy = { retry in
| |- warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'strategy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | .exponential(retry: retry)
216 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
46 | data: Data,
47 | _ urlRresponse: URLResponse,
48 | _ urlRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
49 | {
50 | self.value = value
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:210:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
211 | }
212 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Request
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/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Request
33 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 |
35 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | value: T,
46 | data: Data,
47 | _ urlRresponse: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ urlRequest: URLRequest)
49 | {
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/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
31 |
32 | /// Request
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:26: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 | /// Status code
17 | public var statusCode: Int? {
18 | (urlResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 | }
20 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | /// Status code
17 | public var statusCode: Int? {
18 | (urlResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 |
[30/31] Compiling async_http_client Proxy.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
56 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
57 | delegateQueue queue: OperationQueue? = nil
58 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
105 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
106 | delegateQueue queue: OperationQueue? = nil
107 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
174 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
175 | public func send<T>(
176 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
177 | retry strategy : RetryService.Strategy = .exponential(),
178 | _ validate : [Http.Validate] = [.status(200)],
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: cannot find type 'URLRequest' in scope
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
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
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:214:17: warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Get default strategy for retries
214 | fileprivate let strategy : (UInt) -> RetryService.Strategy = { retry in
| |- warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'strategy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | .exponential(retry: retry)
216 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
46 | data: Data,
47 | _ urlRresponse: URLResponse,
48 | _ urlRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
49 | {
50 | self.value = value
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:210:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
211 | }
212 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Request
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/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Request
33 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 |
35 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | value: T,
46 | data: Data,
47 | _ urlRresponse: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ urlRequest: URLRequest)
49 | {
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/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
31 |
32 | /// Request
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:26: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 | /// Status code
17 | public var statusCode: Int? {
18 | (urlResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 | }
20 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | /// Status code
17 | public var statusCode: Int? {
18 | (urlResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 |
[31/31] Compiling async_http_client Response.swift
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:56:23: error: cannot find type 'URLSessionDelegate' in scope
54 | baseURL: URL,
55 | sessionConfiguration: URLSessionConfiguration,
56 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
57 | delegateQueue queue: OperationQueue? = nil
58 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Configuration.swift:105:20: error: cannot find type 'URLSessionDelegate' in scope
103 | baseURL: URL,
104 | sessionConfiguration: URLSessionConfiguration,
105 | delegate: URLSessionDelegate? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
106 | delegateQueue queue: OperationQueue? = nil
107 | ) {
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:176:28: error: cannot find type 'URLRequest' in scope
174 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
175 | public func send<T>(
176 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
177 | retry strategy : RetryService.Strategy = .exponential(),
178 | _ validate : [Http.Validate] = [.status(200)],
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:71: error: cannot find type 'URLRequest' in scope
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: cannot find type 'URLRequest' in scope
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:208:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 | /// - request: URLRequest
207 | /// - Returns: true - content-type header is not empty
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
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
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:214:17: warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
212 |
213 | /// Get default strategy for retries
214 | fileprivate let strategy : (UInt) -> RetryService.Strategy = { retry in
| |- warning: let 'strategy' is not concurrency-safe because non-'Sendable' type '(UInt) -> RetryService.Strategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'strategy' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
215 | .exponential(retry: retry)
216 | }
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:26:13: error: cannot find type 'URLRequest' in scope
24 | body : Data? = nil,
25 | headers : Http.Headers?
26 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
27 | //url + query
28 | let url = try buildURL(baseURL: baseURL, for: path, query: query)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/RequestHelper.swift:64:13: error: cannot find type 'URLRequest' in scope
62 | headers : Http.Headers?
63 |
64 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/async-http-client/proxy/helper/SendHelper.swift:16:20: error: cannot find type 'URLRequest' in scope
14 | /// - taskDelegate: A protocol that defines methods that URL session instances call on their delegates to handle task-level events
15 | internal func sendRetry(
16 | with request : URLRequest,
| `- error: cannot find type 'URLRequest' in scope
17 | retry strategy : RetryService.Strategy,
18 | _ taskDelegate: ITaskDelegate? = nil,
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:48:27: error: cannot find type 'URLRequest' in scope
46 | data: Data,
47 | _ urlRresponse: URLResponse,
48 | _ urlRequest: URLRequest)
| `- error: cannot find type 'URLRequest' in scope
49 | {
50 | self.value = value
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Proxy.swift:210:13: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
208 | fileprivate func hasNotContentType(_ session : URLSession,_ request : URLRequest) -> Bool{
209 | request.value(forHTTPHeaderField: "Content-Type") == nil &&
210 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
211 | }
212 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// Request
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/async-http-client/proxy/http/Response.swift:33:32: error: cannot find type 'URLRequest' in scope
31 |
32 | /// Request
33 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 |
35 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:47:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | value: T,
46 | data: Data,
47 | _ urlRresponse: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ urlRequest: URLRequest)
49 | {
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/async-http-client/proxy/http/Response.swift:30:20: warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
28 |
29 | /// Response
30 | public let urlResponse: URLResponse
| `- warning: stored property 'urlResponse' of 'Sendable'-conforming generic struct 'Response' has non-sendable type 'URLResponse' (aka 'AnyObject'); this is an error in the Swift 6 language mode
31 |
32 | /// Request
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:26: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
16 | /// Status code
17 | public var statusCode: Int? {
18 | (urlResponse as? HTTPURLResponse)?.statusCode
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
19 | }
20 |
/host/spi-builder-workspace/Sources/async-http-client/proxy/http/Response.swift:18:48: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
16 | /// Status code
17 | public var statusCode: Int? {
18 | (urlResponse as? HTTPURLResponse)?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
19 | }
20 |
BUILD FAILURE 6.0 linux