Build Information
Failed to build RealHTTP, reference 1.9.0 (fcec34
), with Swift 5.9 for Linux on 15 Jan 2025 15:41:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:35:68: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
completionHandler(.rejectProtectionSpace, nil)
~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
completionHandler(.rejectProtectionSpace, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, cred)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
guard let trust = challenge.protectionSpace.serverTrust else {
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
completionHandler(.useCredential, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, URLCredential(trust: trust))
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
completionHandler(.useCredential, URLCredential(trust: trust))
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy,
^~~~~~~~~~
[57/79] Compiling RealHTTP HTTPContentType.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:35:68: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
completionHandler(.rejectProtectionSpace, nil)
~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
completionHandler(.rejectProtectionSpace, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, cred)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
guard let trust = challenge.protectionSpace.serverTrust else {
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
completionHandler(.useCredential, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, URLCredential(trust: trust))
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
completionHandler(.useCredential, URLCredential(trust: trust))
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy,
^~~~~~~~~~
[58/79] Compiling RealHTTP HTTPError.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:35:68: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
completionHandler(.rejectProtectionSpace, nil)
~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
completionHandler(.rejectProtectionSpace, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, cred)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
guard let trust = challenge.protectionSpace.serverTrust else {
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
completionHandler(.useCredential, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, URLCredential(trust: trust))
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
completionHandler(.useCredential, URLCredential(trust: trust))
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy,
^~~~~~~~~~
[59/79] Compiling RealHTTP HTTPMethod.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:49: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:24:80: error: 'URLCredential' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public typealias AuthenticationCallback = ((URLAuthenticationChallenge) -> URLCredential?)
^~~~~~~~~~~~~
Foundation.URLCredential:2:18: note: 'URLCredential' has been explicitly marked unavailable here
public typealias URLCredential = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:45:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:42:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:44:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/HTTPSecurityService.swift:35:68: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:32: error: cannot infer contextual base in reference to member 'rejectProtectionSpace'
completionHandler(.rejectProtectionSpace, nil)
~^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:47:55: error: 'nil' requires a contextual type
completionHandler(.rejectProtectionSpace, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift:51:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, cred)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:32:75: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:29:47: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func receiveChallenge(_ challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:31:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
task: URLSessionTask,
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:33:37: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
guard let trust = challenge.protectionSpace.serverTrust else {
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:32: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, nil)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:34:47: error: 'nil' requires a contextual type
completionHandler(.useCredential, nil)
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:28: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, URLCredential(trust: trust))
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift:38:43: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
completionHandler(.useCredential, URLCredential(trust: trust))
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:21:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift:35:30: error: cannot find type 'URLRequest' in scope
cachePolicy: URLRequest.CachePolicy,
^~~~~~~~~~
[60/79] Compiling RealHTTP HTTPClient.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[61/79] Compiling RealHTTP HTTPClientDelegate.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[62/79] Compiling RealHTTP HTTPRequest+Combine.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[63/79] Compiling RealHTTP HTTPRequest.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[64/79] Compiling RealHTTP HTTPResponse.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[65/79] Compiling RealHTTP HTTPBody.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[66/79] Compiling RealHTTP HTTPSerializableBody.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[67/79] Compiling RealHTTP HTTPBody+JSON.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[68/79] Compiling RealHTTP JSONEncodable.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[69/79] Compiling RealHTTP JSONSerializable.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:63:58: error: cannot find type 'URLRequest' in scope
response: HTTPResponse, with newRequest: URLRequest)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:41:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var session: URLSession {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:47:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:66:31: error: 'HTTPCookieStorage' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var cookieStorage: HTTPCookieStorage? {
^~~~~~~~~~~~~~~~~
Foundation.HTTPCookieStorage:2:18: note: 'HTTPCookieStorage' has been explicitly marked unavailable here
public typealias HTTPCookieStorage = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
configuration: URLSessionConfiguration = .default) {
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:118:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
configuration: URLSessionConfiguration = .default) {
~^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:132:46: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func cookies(forURL url: URL) -> [HTTPCookie] {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:39:31: error: cannot find type 'URLRequest' in scope
internal var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:67:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:133:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
session.configuration.httpCookieStorage?.cookies(for: url) ?? []
~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:23:62: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
typealias ExecutedRequest = (request: HTTPRequest, task: URLSessionTask)
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClientDelegate.swift:73:32: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
authChallenge: URLAuthenticationChallenge)
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:23:48: error: cannot find type 'URLRequest' in scope
public typealias RequestModifier = ((inout URLRequest) throws -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:34:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public internal(set) weak var sessionTask: URLSessionTask?
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:123:29: error: cannot find type 'URLRequest' in scope
public var cachePolicy: URLRequest.CachePolicy?
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:293:49: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func setCookiesInHeaders(_ cookies: [HTTPCookie]) {
^~~~~~~~~~
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
public typealias HTTPCookie = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:417:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
internal func urlSessionTask(inClient client: HTTPClient) async throws -> URLSessionTask {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:28: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:502:43: error: cannot find type 'URLRequest' in scope
case followCustom((URLRequest) -> URLRequest?)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:30: warning: conditional downcast from 'URLSessionTask?' (aka 'Optional<AnyObject>') to 'URLSessionDownloadTask' (aka 'AnyObject') does nothing
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:59: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
(sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:272:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:275:26: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'cancel'
sessionTask?.cancel()
~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:294:39: error: type 'HTTPCookie' (aka 'AnyObject') has no member 'requestHeaderFields'
let headerFields = HTTPCookie.requestHeaderFields(with: cookies).map { item in
~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:425:19: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var task: URLSessionTask!
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:428:35: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
task = client.session.uploadTask(withStreamedRequest: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:432:39: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
task = client.session.dataTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:435:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(withResumeData: partialData)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:437:43: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
task = client.session.downloadTask(with: urlRequest)
~~~~~~~~~~~~~~ ^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:443:14: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'priority'
task.priority = httpPriority.urlTaskPriority
~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:466:30: error: cannot find 'URLRequest' in scope
var urlRequest = try URLRequest(url: fullURL,
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:34:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
open var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:37:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public var httpResponse: HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:38: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:47:60: error: cannot find type 'URLRequest' in scope
open var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:21: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
urlResponse as? HTTPURLResponse
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:38:25: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse as? HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:87:23: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'headers'
httpResponse?.headers ?? HTTPHeaders()
~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[70/79] Compiling RealHTTP HTTPBody+FormValues.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[71/79] Compiling RealHTTP HTTPBody+Multipart.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[72/79] Compiling RealHTTP MultipartForm+Boundary.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[73/79] Compiling RealHTTP MultipartForm+Item.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[74/79] Compiling RealHTTP MultipartForm.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[75/79] Compiling RealHTTP HTTPBody+Stream.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[76/79] Compiling RealHTTP StreamContent.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[77/79] Compiling RealHTTP HTTPBody+QueryString.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[78/79] Compiling RealHTTP URLParametersData.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
[79/79] Compiling RealHTTP HTTPDataLoader+Response.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:113:31: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
try fileURL.checkPromisedItemIsReachable() else { // is file reachable
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:35:29: error: cannot find type 'URLSessionTaskMetrics' in scope
var sessionTaskMetrics: URLSessionTaskMetrics?
^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:44:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
var urlResponse: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:33: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift:58:55: error: cannot find type 'URLRequest' in scope
var urlRequests: (original: URLRequest?, current: URLRequest?) = (nil, nil)
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux