Build Information
Failed to build CoderPadKit, reference 0.6.0 (e6ff75), with Swift 6.3 for Wasm on 9 Oct 2026 21:46:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
126 | from request: RESTRequest,
127 | bodyStreamFailureBox: FileBodyStreamFailureBox? = nil
128 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
129 | try request.validate()
130 | var urlRequest = URLRequest(url: request.url)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:145:20: error: cannot find type 'URLRequest' in scope
143 |
144 | private nonisolated static func requiresSameOrigin(
145 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
146 | bodyFileURL: URL?
147 | ) -> Bool {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:159:30: error: cannot find type 'URLRequest' in scope
157 | private nonisolated static func attachFileBody(
158 | _ bodyFileURL: URL,
159 | to urlRequest: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
160 | failureBox: FileBodyStreamFailureBox? = nil
161 | ) throws {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:211:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | /// values (such as NSArray), which can add quotes and brackets not present on the wire.
210 | /// Package-visible so the Linux bounded loader can reuse the same header projection.
211 | nonisolated static func responseHeaders(from response: HTTPURLResponse) -> [String: String] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | response.allHeaderFields.reduce(into: [String: String]()) { result, field in
213 | guard let name = field.key as? String,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:322:34: error: cannot find type 'URLSessionDelegate' in scope
320 | requiresSameOrigin: Bool = true,
321 | retainingSuccessBody: Bool = true,
322 | forwardingDelegate: (any URLSessionDelegate)?
| `- error: cannot find type 'URLSessionDelegate' in scope
323 | ) {
324 | self.successResponseLimit = successResponseLimit
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:276:48: error: cannot find type 'URLSessionDataDelegate' in scope
274 | }
275 |
276 | final class BoundedURLSessionLoader: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
277 | private struct State {
278 | var continuation: CheckedContinuation<RESTResponse, any Error>?
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:282:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | /// task-specific delegates, so Linux creates a one-shot session with `self`
281 | /// as the session delegate and finishes it when the transfer ends.
282 | var ownedSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 | var task: URLSessionDataTask?
284 | var response: HTTPURLResponse?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:283:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | /// as the session delegate and finishes it when the transfer ends.
282 | var ownedSession: URLSession?
283 | var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | var response: HTTPURLResponse?
285 | var data = Data()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:284:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | var ownedSession: URLSession?
283 | var task: URLSessionDataTask?
284 | var response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
285 | var data = Data()
286 | var limit = 0
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:294:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 | private struct CancellationResources {
293 | let continuation: CheckedContinuation<RESTResponse, any Error>?
294 | let task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
295 | let ownedSession: URLSession?
296 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:295:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
293 | let continuation: CheckedContinuation<RESTResponse, any Error>?
294 | let task: URLSessionDataTask?
295 | let ownedSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
296 | }
297 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:310:42: error: cannot find type 'URLSessionDelegate' in scope
308 | private let redirectDelegate: SameOriginRedirectDelegate
309 | private let retainingSuccessBody: Bool
310 | private let forwardingDelegate: (any URLSessionDelegate)?
| `- error: cannot find type 'URLSessionDelegate' in scope
311 | private let bodyFileURL: URL?
312 | private let bodyStreamFailureBox: FileBodyStreamFailureBox?
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:346:48: error: cannot find type 'URLRequest' in scope
344 | /// the loader creates a one-shot session from the caller's configuration and owns
345 | /// that session for the duration of the transfer.
346 | func load(on session: URLSession, request: URLRequest) async throws -> RESTResponse {
| `- error: cannot find type 'URLRequest' in scope
347 | try await withTaskCancellationHandler {
348 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:346:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | /// the loader creates a one-shot session from the caller's configuration and owns
345 | /// that session for the duration of the transfer.
346 | func load(on session: URLSession, request: URLRequest) async throws -> RESTResponse {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
347 | try await withTaskCancellationHandler {
348 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:390:21: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
388 | nonisolated static func constrainedResponseDisposition(
389 | _ disposition: URLSession.ResponseDisposition
390 | ) -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
391 | disposition == .cancel ? .cancel : .allow
392 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:389:35: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
387 | /// `.allow` so a `RESTResponse` can still be produced.
388 | nonisolated static func constrainedResponseDisposition(
389 | _ disposition: URLSession.ResponseDisposition
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
390 | ) -> URLSession.ResponseDisposition {
391 | disposition == .cancel ? .cancel : .allow
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:398:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
396 | dataTask: URLSessionDataTask,
397 | didReceive response: URLResponse,
398 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
399 | ) {
400 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:395:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
393 |
394 | func urlSession(
395 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
396 | dataTask: URLSessionDataTask,
397 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:396:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
394 | func urlSession(
395 | _ session: URLSession,
396 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
397 | didReceive response: URLResponse,
398 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:397:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
395 | _ session: URLSession,
396 | dataTask: URLSessionDataTask,
397 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
399 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:456:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
454 | }
455 |
456 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
457 | let shouldRetain = lock.withLock { state.retainBody }
458 | guard shouldRetain else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:456:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
454 | }
455 |
456 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
457 | let shouldRetain = lock.withLock { state.retainBody }
458 | guard shouldRetain else {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:488:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | }
487 |
488 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 | #if canImport(FoundationNetworking)
490 | (forwardingDelegate as? any URLSessionTaskDelegate)?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:488:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | }
487 |
488 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 | #if canImport(FoundationNetworking)
490 | (forwardingDelegate as? any URLSessionTaskDelegate)?
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:523:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
521 |
522 | private func forwardDidReceiveData(
523 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
524 | dataTask: URLSessionDataTask,
525 | data: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:524:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
522 | private func forwardDidReceiveData(
523 | _ session: URLSession,
524 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
525 | data: Data
526 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:581:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
579 | _ session: URLSession,
580 | didReceive challenge: URLAuthenticationChallenge,
581 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
582 | ) {
583 | redirectDelegate.urlSession(session, didReceive: challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:579:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
577 |
578 | func urlSession(
579 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
580 | didReceive challenge: URLAuthenticationChallenge,
581 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:580:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
578 | func urlSession(
579 | _ session: URLSession,
580 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
581 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
582 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:590:29: error: cannot find type 'URLRequest' in scope
588 | task: URLSessionTask,
589 | willPerformHTTPRedirection response: HTTPURLResponse,
590 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
591 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
592 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:591:49: error: cannot find type 'URLRequest' in scope
589 | willPerformHTTPRedirection response: HTTPURLResponse,
590 | newRequest request: URLRequest,
591 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
592 | ) {
593 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:587:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
585 |
586 | func urlSession(
587 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
588 | task: URLSessionTask,
589 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:588:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
586 | func urlSession(
587 | _ session: URLSession,
588 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
589 | willPerformHTTPRedirection response: HTTPURLResponse,
590 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:589:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
587 | _ session: URLSession,
588 | task: URLSessionTask,
589 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
590 | newRequest request: URLRequest,
591 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:606:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
604 | task: URLSessionTask,
605 | didReceive challenge: URLAuthenticationChallenge,
606 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
607 | ) {
608 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:603:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
601 |
602 | func urlSession(
603 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
604 | task: URLSessionTask,
605 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:604:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
602 | func urlSession(
603 | _ session: URLSession,
604 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
605 | didReceive challenge: URLAuthenticationChallenge,
606 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:605:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
603 | _ session: URLSession,
604 | task: URLSessionTask,
605 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
606 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
607 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:617:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
615 |
616 | func urlSession(
617 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
618 | task: URLSessionTask,
619 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:618:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
616 | func urlSession(
617 | _ session: URLSession,
618 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
619 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
620 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:629:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
627 |
628 | func urlSession(
629 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
630 | task: URLSessionTask,
631 | didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:630:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
628 | func urlSession(
629 | _ session: URLSession,
630 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
631 | didSendBodyData bytesSent: Int64,
632 | totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:647:42: error: cannot find type 'URLRequest' in scope
645 | _ session: URLSession,
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
649 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:648:60: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
649 | ) {
650 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:648:87: error: cannot find type 'URLRequest' in scope
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
649 | ) {
650 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:645:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
643 |
644 | func urlSession(
645 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:646:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 | func urlSession(
645 | _ session: URLSession,
646 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
647 | willBeginDelayedRequest request: URLRequest,
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:95: error: cannot find type 'URLSessionTaskMetrics' in scope
656 | }
657 |
658 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
659 | redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
656 | }
657 |
658 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
659 | redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
656 | }
657 |
658 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
659 | redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:663:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
661 |
662 | #if !canImport(FoundationNetworking)
663 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
664 | redirectDelegate.urlSession(session, taskIsWaitingForConnectivity: task)
665 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:663:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
661 |
662 | #if !canImport(FoundationNetworking)
663 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
664 | redirectDelegate.urlSession(session, taskIsWaitingForConnectivity: task)
665 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:669:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
667 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
668 | func urlSession(
669 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
670 | task: URLSessionTask,
671 | didReceiveInformationalResponse response: HTTPURLResponse
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:670:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
668 | func urlSession(
669 | _ session: URLSession,
670 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
671 | didReceiveInformationalResponse response: HTTPURLResponse
672 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:671:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
669 | _ session: URLSession,
670 | task: URLSessionTask,
671 | didReceiveInformationalResponse response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
672 | ) {
673 | redirectDelegate.urlSession(session, task: task, didReceiveInformationalResponse: response)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:678:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
676 |
677 | func urlSession(
678 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
679 | dataTask: URLSessionDataTask,
680 | willCacheResponse proposedResponse: CachedURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:679:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
677 | func urlSession(
678 | _ session: URLSession,
679 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
680 | willCacheResponse proposedResponse: CachedURLResponse,
681 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:680:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
678 | _ session: URLSession,
679 | dataTask: URLSessionDataTask,
680 | willCacheResponse proposedResponse: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
681 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
682 | ) {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:681:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
679 | dataTask: URLSessionDataTask,
680 | willCacheResponse proposedResponse: CachedURLResponse,
681 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
682 | ) {
683 | guard let delegate = forwardingDelegate as? any URLSessionDataDelegate else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
[14/22] Compiling PaginatedRESTClient PaginatedRESTClient.swift
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 | // default transport without hopping to MainActor.
27 | public nonisolated init(
28 | session: URLSession = URLSession(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | successResponseLimit: Int = 10 * 1024 * 1024,
30 | errorResponseLimit: Int = 64 * 1024
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:58: error: cannot infer contextual base in reference to member 'ephemeral'
26 | // default transport without hopping to MainActor.
27 | public nonisolated init(
28 | session: URLSession = URLSession(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
29 | successResponseLimit: Int = 10 * 1024 * 1024,
30 | errorResponseLimit: Int = 64 * 1024
[15/22] Compiling PaginatedRESTClient URLSessionTransport.swift
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:21:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
19 | /// configured session (custom timeouts or a stub `URLProtocol`) when you need one.
20 | public struct URLSessionTransport: RESTTransport {
21 | nonisolated let session: URLSession
| `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
22 | nonisolated let successResponseLimit: Int
23 | nonisolated let errorResponseLimit: Int
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:21:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | /// configured session (custom timeouts or a stub `URLProtocol`) when you need one.
20 | public struct URLSessionTransport: RESTTransport {
21 | nonisolated let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | nonisolated let successResponseLimit: Int
23 | nonisolated let errorResponseLimit: Int
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | // default transport without hopping to MainActor.
27 | public nonisolated init(
28 | session: URLSession = URLSession(configuration: .ephemeral),
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | successResponseLimit: Int = 10 * 1024 * 1024,
30 | errorResponseLimit: Int = 64 * 1024
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
26 | // default transport without hopping to MainActor.
27 | public nonisolated init(
28 | session: URLSession = URLSession(configuration: .ephemeral),
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | successResponseLimit: Int = 10 * 1024 * 1024,
30 | errorResponseLimit: Int = 64 * 1024
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:58: error: cannot infer contextual base in reference to member 'ephemeral'
26 | // default transport without hopping to MainActor.
27 | public nonisolated init(
28 | session: URLSession = URLSession(configuration: .ephemeral),
| `- error: cannot infer contextual base in reference to member 'ephemeral'
29 | successResponseLimit: Int = 10 * 1024 * 1024,
30 | errorResponseLimit: Int = 64 * 1024
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:42:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | /// response path. Reject them before a request starts rather than failing after the
41 | /// system has accepted the transfer.
42 | public nonisolated static func supports(_ session: URLSession) -> Bool {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | #if os(Linux)
44 | true
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:128:17: error: cannot find type 'URLRequest' in scope
126 | from request: RESTRequest,
127 | bodyStreamFailureBox: FileBodyStreamFailureBox? = nil
128 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
129 | try request.validate()
130 | var urlRequest = URLRequest(url: request.url)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:145:20: error: cannot find type 'URLRequest' in scope
143 |
144 | private nonisolated static func requiresSameOrigin(
145 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
146 | bodyFileURL: URL?
147 | ) -> Bool {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:159:30: error: cannot find type 'URLRequest' in scope
157 | private nonisolated static func attachFileBody(
158 | _ bodyFileURL: URL,
159 | to urlRequest: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
160 | failureBox: FileBodyStreamFailureBox? = nil
161 | ) throws {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:211:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 | /// values (such as NSArray), which can add quotes and brackets not present on the wire.
210 | /// Package-visible so the Linux bounded loader can reuse the same header projection.
211 | nonisolated static func responseHeaders(from response: HTTPURLResponse) -> [String: String] {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 | response.allHeaderFields.reduce(into: [String: String]()) { result, field in
213 | guard let name = field.key as? String,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:322:34: error: cannot find type 'URLSessionDelegate' in scope
320 | requiresSameOrigin: Bool = true,
321 | retainingSuccessBody: Bool = true,
322 | forwardingDelegate: (any URLSessionDelegate)?
| `- error: cannot find type 'URLSessionDelegate' in scope
323 | ) {
324 | self.successResponseLimit = successResponseLimit
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:276:48: error: cannot find type 'URLSessionDataDelegate' in scope
274 | }
275 |
276 | final class BoundedURLSessionLoader: NSObject, URLSessionDataDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
277 | private struct State {
278 | var continuation: CheckedContinuation<RESTResponse, any Error>?
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:282:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | /// task-specific delegates, so Linux creates a one-shot session with `self`
281 | /// as the session delegate and finishes it when the transfer ends.
282 | var ownedSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 | var task: URLSessionDataTask?
284 | var response: HTTPURLResponse?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:283:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 | /// as the session delegate and finishes it when the transfer ends.
282 | var ownedSession: URLSession?
283 | var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 | var response: HTTPURLResponse?
285 | var data = Data()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:284:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | var ownedSession: URLSession?
283 | var task: URLSessionDataTask?
284 | var response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
285 | var data = Data()
286 | var limit = 0
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:294:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 | private struct CancellationResources {
293 | let continuation: CheckedContinuation<RESTResponse, any Error>?
294 | let task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
295 | let ownedSession: URLSession?
296 | }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:295:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
293 | let continuation: CheckedContinuation<RESTResponse, any Error>?
294 | let task: URLSessionDataTask?
295 | let ownedSession: URLSession?
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
296 | }
297 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:310:42: error: cannot find type 'URLSessionDelegate' in scope
308 | private let redirectDelegate: SameOriginRedirectDelegate
309 | private let retainingSuccessBody: Bool
310 | private let forwardingDelegate: (any URLSessionDelegate)?
| `- error: cannot find type 'URLSessionDelegate' in scope
311 | private let bodyFileURL: URL?
312 | private let bodyStreamFailureBox: FileBodyStreamFailureBox?
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:346:48: error: cannot find type 'URLRequest' in scope
344 | /// the loader creates a one-shot session from the caller's configuration and owns
345 | /// that session for the duration of the transfer.
346 | func load(on session: URLSession, request: URLRequest) async throws -> RESTResponse {
| `- error: cannot find type 'URLRequest' in scope
347 | try await withTaskCancellationHandler {
348 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:346:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | /// the loader creates a one-shot session from the caller's configuration and owns
345 | /// that session for the duration of the transfer.
346 | func load(on session: URLSession, request: URLRequest) async throws -> RESTResponse {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
347 | try await withTaskCancellationHandler {
348 | try await withCheckedThrowingContinuation { continuation in
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:390:21: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
388 | nonisolated static func constrainedResponseDisposition(
389 | _ disposition: URLSession.ResponseDisposition
390 | ) -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
391 | disposition == .cancel ? .cancel : .allow
392 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:389:35: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
387 | /// `.allow` so a `RESTResponse` can still be produced.
388 | nonisolated static func constrainedResponseDisposition(
389 | _ disposition: URLSession.ResponseDisposition
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
390 | ) -> URLSession.ResponseDisposition {
391 | disposition == .cancel ? .cancel : .allow
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:398:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
396 | dataTask: URLSessionDataTask,
397 | didReceive response: URLResponse,
398 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
399 | ) {
400 | guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:395:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
393 |
394 | func urlSession(
395 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
396 | dataTask: URLSessionDataTask,
397 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:396:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
394 | func urlSession(
395 | _ session: URLSession,
396 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
397 | didReceive response: URLResponse,
398 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:397:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
395 | _ session: URLSession,
396 | dataTask: URLSessionDataTask,
397 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
399 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:456:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
454 | }
455 |
456 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
457 | let shouldRetain = lock.withLock { state.retainBody }
458 | guard shouldRetain else {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:456:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
454 | }
455 |
456 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
457 | let shouldRetain = lock.withLock { state.retainBody }
458 | guard shouldRetain else {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:488:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | }
487 |
488 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 | #if canImport(FoundationNetworking)
490 | (forwardingDelegate as? any URLSessionTaskDelegate)?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:488:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 | }
487 |
488 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 | #if canImport(FoundationNetworking)
490 | (forwardingDelegate as? any URLSessionTaskDelegate)?
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:523:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
521 |
522 | private func forwardDidReceiveData(
523 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
524 | dataTask: URLSessionDataTask,
525 | data: Data
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:524:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
522 | private func forwardDidReceiveData(
523 | _ session: URLSession,
524 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
525 | data: Data
526 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:581:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
579 | _ session: URLSession,
580 | didReceive challenge: URLAuthenticationChallenge,
581 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
582 | ) {
583 | redirectDelegate.urlSession(session, didReceive: challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:579:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
577 |
578 | func urlSession(
579 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
580 | didReceive challenge: URLAuthenticationChallenge,
581 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:580:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
578 | func urlSession(
579 | _ session: URLSession,
580 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
581 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
582 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:590:29: error: cannot find type 'URLRequest' in scope
588 | task: URLSessionTask,
589 | willPerformHTTPRedirection response: HTTPURLResponse,
590 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
591 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
592 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:591:49: error: cannot find type 'URLRequest' in scope
589 | willPerformHTTPRedirection response: HTTPURLResponse,
590 | newRequest request: URLRequest,
591 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
592 | ) {
593 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:587:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
585 |
586 | func urlSession(
587 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
588 | task: URLSessionTask,
589 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:588:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
586 | func urlSession(
587 | _ session: URLSession,
588 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
589 | willPerformHTTPRedirection response: HTTPURLResponse,
590 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:589:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
587 | _ session: URLSession,
588 | task: URLSessionTask,
589 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
590 | newRequest request: URLRequest,
591 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:606:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
604 | task: URLSessionTask,
605 | didReceive challenge: URLAuthenticationChallenge,
606 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
607 | ) {
608 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:603:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
601 |
602 | func urlSession(
603 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
604 | task: URLSessionTask,
605 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:604:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
602 | func urlSession(
603 | _ session: URLSession,
604 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
605 | didReceive challenge: URLAuthenticationChallenge,
606 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:605:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
603 | _ session: URLSession,
604 | task: URLSessionTask,
605 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
606 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
607 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:617:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
615 |
616 | func urlSession(
617 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
618 | task: URLSessionTask,
619 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:618:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
616 | func urlSession(
617 | _ session: URLSession,
618 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
619 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
620 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:629:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
627 |
628 | func urlSession(
629 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
630 | task: URLSessionTask,
631 | didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:630:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
628 | func urlSession(
629 | _ session: URLSession,
630 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
631 | didSendBodyData bytesSent: Int64,
632 | totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:647:42: error: cannot find type 'URLRequest' in scope
645 | _ session: URLSession,
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
649 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:648:60: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
649 | ) {
650 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:648:87: error: cannot find type 'URLRequest' in scope
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
649 | ) {
650 | redirectDelegate.urlSession(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:645:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
643 |
644 | func urlSession(
645 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
646 | task: URLSessionTask,
647 | willBeginDelayedRequest request: URLRequest,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:646:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 | func urlSession(
645 | _ session: URLSession,
646 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
647 | willBeginDelayedRequest request: URLRequest,
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:95: error: cannot find type 'URLSessionTaskMetrics' in scope
656 | }
657 |
658 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
659 | redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
656 | }
657 |
658 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
659 | redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
656 | }
657 |
658 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
659 | redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:663:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
661 |
662 | #if !canImport(FoundationNetworking)
663 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
664 | redirectDelegate.urlSession(session, taskIsWaitingForConnectivity: task)
665 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:663:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
661 |
662 | #if !canImport(FoundationNetworking)
663 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
664 | redirectDelegate.urlSession(session, taskIsWaitingForConnectivity: task)
665 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:669:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
667 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
668 | func urlSession(
669 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
670 | task: URLSessionTask,
671 | didReceiveInformationalResponse response: HTTPURLResponse
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:670:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
668 | func urlSession(
669 | _ session: URLSession,
670 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
671 | didReceiveInformationalResponse response: HTTPURLResponse
672 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:671:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
669 | _ session: URLSession,
670 | task: URLSessionTask,
671 | didReceiveInformationalResponse response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
672 | ) {
673 | redirectDelegate.urlSession(session, task: task, didReceiveInformationalResponse: response)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:678:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
676 |
677 | func urlSession(
678 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
679 | dataTask: URLSessionDataTask,
680 | willCacheResponse proposedResponse: CachedURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:679:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
677 | func urlSession(
678 | _ session: URLSession,
679 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
680 | willCacheResponse proposedResponse: CachedURLResponse,
681 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:680:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
678 | _ session: URLSession,
679 | dataTask: URLSessionDataTask,
680 | willCacheResponse proposedResponse: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
681 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
682 | ) {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:681:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
679 | dataTask: URLSessionDataTask,
680 | willCacheResponse proposedResponse: CachedURLResponse,
681 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
682 | ) {
683 | guard let delegate = forwardingDelegate as? any URLSessionDataDelegate else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:32:14: error: main actor-isolated property 'session' can not be mutated from a nonisolated context
19 | /// configured session (custom timeouts or a stub `URLProtocol`) when you need one.
20 | public struct URLSessionTransport: RESTTransport {
21 | nonisolated let session: URLSession
| `- note: mutation of this property is only permitted within the actor
22 | nonisolated let successResponseLimit: Int
23 | nonisolated let errorResponseLimit: Int
:
30 | errorResponseLimit: Int = 64 * 1024
31 | ) {
32 | self.session = session
| `- error: main actor-isolated property 'session' can not be mutated from a nonisolated context
33 | // Limits commonly come from user configuration. A negative value must not crash
34 | // the host process; treating it as zero is the safest bounded interpretation.
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:46:18: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
44 | true
45 | #else
46 | !session.configuration.sessionSendsLaunchEvents
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
47 | #endif
48 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:89:45: error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
87 | requiresSameOrigin: Self.requiresSameOrigin(urlRequest, bodyFileURL: bodyFileURL),
88 | retainingSuccessBody: retainingSuccessBody,
89 | forwardingDelegate: session.delegate
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'delegate'
90 | ).load(on: session, request: urlRequest)
91 | } catch let error as RESTRequestBodyError {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:69:29: error: non-Sendable type 'URLSession' (aka 'AnyObject') of property 'session' cannot exit nonisolated context
67 | retainingSuccessBody: Bool
68 | ) async throws -> RESTResponse {
69 | guard Self.supports(session) else {
| `- error: non-Sendable type 'URLSession' (aka 'AnyObject') of property 'session' cannot exit nonisolated context
70 | throw RESTRequestError.unsupportedBackgroundSession
71 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:130:26: error: cannot find 'URLRequest' in scope
128 | ) throws -> URLRequest {
129 | try request.validate()
130 | var urlRequest = URLRequest(url: request.url)
| `- error: cannot find 'URLRequest' in scope
131 | urlRequest.httpMethod = request.method
132 | for field in request.headerFields {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:150:58: error: type '(_) -> Bool' cannot conform to 'Equatable' [#ProtocolTypeNonConformance]
148 | guard bodyFileURL == nil else { return true }
149 | let sensitive = ["authorization", "cookie", "proxy-authorization"]
150 | return (request.allHTTPHeaderFields ?? [:]).keys.contains {
| |- error: type '(_) -> Bool' cannot conform to 'Equatable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by referencing instance method 'contains' on 'Sequence' where 'Self.Element' = '(_) -> Bool'
151 | sensitive.contains($0.lowercased())
152 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:150:48: error: type '(_) -> Bool' cannot conform to 'Hashable' [#ProtocolTypeNonConformance]
148 | guard bodyFileURL == nil else { return true }
149 | let sensitive = ["authorization", "cookie", "proxy-authorization"]
150 | return (request.allHTTPHeaderFields ?? [:]).keys.contains {
| |- error: type '(_) -> Bool' cannot conform to 'Hashable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by generic struct 'Dictionary' where 'Key' = '(_) -> Bool'
151 | sensitive.contains($0.lowercased())
152 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:150:67: error: cannot infer type of closure parameter '$0' without a type annotation
148 | guard bodyFileURL == nil else { return true }
149 | let sensitive = ["authorization", "cookie", "proxy-authorization"]
150 | return (request.allHTTPHeaderFields ?? [:]).keys.contains {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
151 | sensitive.contains($0.lowercased())
152 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:212:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
210 | /// Package-visible so the Linux bounded loader can reuse the same header projection.
211 | nonisolated static func responseHeaders(from response: HTTPURLResponse) -> [String: String] {
212 | response.allHeaderFields.reduce(into: [String: String]()) { result, field in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
213 | guard let name = field.key as? String,
214 | let value = response.value(forHTTPHeaderField: name)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:33:34: error: cannot find type 'URLSessionDelegate' in scope
31 | bodyStreamFailureBox: FileBodyStreamFailureBox? = nil,
32 | requiresSameOrigin: Bool = true,
33 | forwardingDelegate: (any URLSessionDelegate)?
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | ) {
35 | requestOrigin = Self.origin(from: requestURL)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:363:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
361 | return task
362 | #else
363 | let task = session.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
364 | state.continuation = continuation
365 | state.task = task
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:400:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
399 | ) {
400 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
401 | completionHandler(.cancel)
402 | complete(.failure(URLError(.badServerResponse)))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:401:32: error: cannot infer contextual base in reference to member 'cancel'
399 | ) {
400 | guard let http = response as? HTTPURLResponse else {
401 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
402 | complete(.failure(URLError(.badServerResponse)))
403 | return
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:405:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | return
404 | }
405 | let limit = (200 ..< 300).contains(http.statusCode) ? successResponseLimit : errorResponseLimit
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
406 | let retainBody = retainingSuccessBody || !(200 ..< 300).contains(http.statusCode)
407 | // HEAD is explicitly bodyless. Its Content-Length describes the corresponding GET
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:406:79: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
404 | }
405 | let limit = (200 ..< 300).contains(http.statusCode) ? successResponseLimit : errorResponseLimit
406 | let retainBody = retainingSuccessBody || !(200 ..< 300).contains(http.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | // HEAD is explicitly bodyless. Its Content-Length describes the corresponding GET
408 | // representation, rather than bytes transferred by this response.
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:409:33: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'originalRequest'
407 | // HEAD is explicitly bodyless. Its Content-Length describes the corresponding GET
408 | // representation, rather than bytes transferred by this response.
409 | let declared = dataTask.originalRequest?.httpMethod == "HEAD" || !retainBody ? nil : (
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'originalRequest'
410 | http.expectedContentLength >= 0 ? http.expectedContentLength : nil
411 | )
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:410:18: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
408 | // representation, rather than bytes transferred by this response.
409 | let declared = dataTask.originalRequest?.httpMethod == "HEAD" || !retainBody ? nil : (
410 | http.expectedContentLength >= 0 ? http.expectedContentLength : nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
411 | )
412 | guard declared.map({ $0 <= Int64(limit) }) ?? true else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:410:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
408 | // representation, rather than bytes transferred by this response.
409 | let declared = dataTask.originalRequest?.httpMethod == "HEAD" || !retainBody ? nil : (
410 | http.expectedContentLength >= 0 ? http.expectedContentLength : nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
411 | )
412 | guard declared.map({ $0 <= Int64(limit) }) ?? true else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:413:32: error: cannot infer contextual base in reference to member 'cancel'
411 | )
412 | guard declared.map({ $0 <= Int64(limit) }) ?? true else {
413 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
414 | complete(.failure(RESTResponseTooLargeError(
415 | statusCode: http.statusCode,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:415:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | completionHandler(.cancel)
414 | complete(.failure(RESTResponseTooLargeError(
415 | statusCode: http.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | limit: limit,
417 | phase: .headers,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:434:43: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
432 | }
433 |
434 | let finish: @Sendable (URLSession.ResponseDisposition) -> Void = { disposition in
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
435 | completionHandler(Self.constrainedResponseDisposition(disposition))
436 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:437:57: error: cannot find type 'URLSessionDataDelegate' in scope
435 | completionHandler(Self.constrainedResponseDisposition(disposition))
436 | }
437 | guard let delegate = forwardingDelegate as? any URLSessionDataDelegate else {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
438 | finish(.allow)
439 | return
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:438:21: error: cannot infer contextual base in reference to member 'allow'
436 | }
437 | guard let delegate = forwardingDelegate as? any URLSessionDataDelegate else {
438 | finish(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
439 | return
440 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:451:21: error: cannot infer contextual base in reference to member 'allow'
449 | )
450 | if forwarded == nil {
451 | finish(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
452 | }
453 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:465:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
463 | guard !state.completed, let response = state.response else { return .ignored }
464 | guard data.count <= state.limit - state.data.count else {
465 | let declared = response.expectedContentLength >= 0 ? response.expectedContentLength : nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
466 | return .overflow(RESTResponseTooLargeError(
467 | statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:465:79: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
463 | guard !state.completed, let response = state.response else { return .ignored }
464 | guard data.count <= state.limit - state.data.count else {
465 | let declared = response.expectedContentLength >= 0 ? response.expectedContentLength : nil
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'expectedContentLength'
466 | return .overflow(RESTResponseTooLargeError(
467 | statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:483:22: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
481 | forwardDidReceiveData(session, dataTask: dataTask, data: data)
482 | case let .overflow(error):
483 | dataTask.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
484 | complete(.failure(error))
485 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:493:37: error: cannot find type 'URLSessionTaskDelegate' in scope
491 | .urlSession(session, task: task, didCompleteWithError: error)
492 | #else
493 | (forwardingDelegate as? any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
494 | .urlSession?(session, task: task, didCompleteWithError: error)
495 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:514:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
512 | return RESTResponse(
513 | data: state.data,
514 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
515 | headers: headers,
516 | url: response.url
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:516:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
514 | statusCode: response.statusCode,
515 | headers: headers,
516 | url: response.url
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
517 | )
518 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:519:29: error: generic parameter 'Success' could not be inferred
517 | )
518 | }
519 | complete(result.map(Result.success) ?? .failure(URLError(.badServerResponse)))
| `- error: generic parameter 'Success' could not be inferred
520 | }
521 |
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:519:29: error: generic parameter 'Failure' could not be inferred
517 | )
518 | }
519 | complete(result.map(Result.success) ?? .failure(URLError(.badServerResponse)))
| |- error: generic parameter 'Failure' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
520 | }
521 |
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:531:37: error: cannot find type 'URLSessionDataDelegate' in scope
529 | .urlSession(session, dataTask: dataTask, didReceive: data)
530 | #else
531 | (forwardingDelegate as? any URLSessionDataDelegate)?
| `- error: cannot find type 'URLSessionDataDelegate' in scope
532 | .urlSession?(session, dataTask: dataTask, didReceive: data)
533 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:553:25: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
551 | return result
552 | }
553 | resources.task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
554 | resources.ownedSession?.invalidateAndCancel()
555 | resources.continuation?.resume(throwing: CancellationError())
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:554:33: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
552 | }
553 | resources.task?.cancel()
554 | resources.ownedSession?.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
555 | resources.continuation?.resume(throwing: CancellationError())
556 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:559:95: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
557 |
558 | private func complete(_ result: Result<RESTResponse, any Error>) {
559 | let resources = lock.withLock { () -> (CheckedContinuation<RESTResponse, any Error>?, URLSession?) in
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
560 | guard !state.completed else { return (nil, nil) }
561 | state.completed = true
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:569:22: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
567 | }
568 | // Only Linux owns a per-request session; never invalidate the caller's session.
569 | resources.1?.finishTasksAndInvalidate()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
570 | resources.0?.resume(with: result)
571 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:46:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
44 | _ session: URLSession,
45 | didReceive challenge: URLAuthenticationChallenge,
46 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | ) {
48 | guard let sessionDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:78:29: error: cannot find type 'URLRequest' in scope
76 | task: URLSessionTask,
77 | willPerformHTTPRedirection response: HTTPURLResponse,
78 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
79 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
80 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:79:49: error: cannot find type 'URLRequest' in scope
77 | willPerformHTTPRedirection response: HTTPURLResponse,
78 | newRequest request: URLRequest,
79 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
80 | ) {
81 | guard allows(request) else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:119:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
117 | task: URLSessionTask,
118 | didReceive challenge: URLAuthenticationChallenge,
119 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
120 | ) {
121 | guard let forwardingDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:201:42: error: cannot find type 'URLRequest' in scope
199 | _ session: URLSession,
200 | task: URLSessionTask,
201 | willBeginDelayedRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
202 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
203 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:202:60: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
200 | task: URLSessionTask,
201 | willBeginDelayedRequest request: URLRequest,
202 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
203 | ) {
204 | guard let forwardingDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:202:87: error: cannot find type 'URLRequest' in scope
200 | task: URLSessionTask,
201 | willBeginDelayedRequest request: URLRequest,
202 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
203 | ) {
204 | guard let forwardingDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:243:95: error: cannot find type 'URLSessionTaskMetrics' in scope
241 | }
242 |
243 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
244 | #if canImport(FoundationNetworking)
245 | forwardingDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:583:26: error: no exact matches in call to instance method 'urlSession'
581 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
582 | ) {
583 | redirectDelegate.urlSession(session, didReceive: challenge, completionHandler: completionHandler)
| `- error: no exact matches in call to instance method 'urlSession'
584 | }
585 |
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:140:10: note: incorrect labels for candidate (have: '(_:didReceive:completionHandler:)', expected: '(_:task:needNewBodyStream:)')
138 | }
139 |
140 | func urlSession(
| `- note: incorrect labels for candidate (have: '(_:didReceive:completionHandler:)', expected: '(_:task:needNewBodyStream:)')
141 | _ session: URLSession,
142 | task: URLSessionTask,
:
249 | }
250 |
251 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- note: incorrect labels for candidate (have: '(_:didReceive:completionHandler:)', expected: '(_:task:didCompleteWithError:)')
252 | #if canImport(FoundationNetworking)
253 | forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
:
263 |
264 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
265 | func urlSession(
| `- note: incorrect labels for candidate (have: '(_:didReceive:completionHandler:)', expected: '(_:task:didReceiveInformationalResponse:)')
266 | _ session: URLSession,
267 | task: URLSessionTask,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:593:36: error: incorrect argument labels in call (have '_:task:willPerformHTTPRedirection:newRequest:completionHandler:', expected '_:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:')
591 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
592 | ) {
593 | redirectDelegate.urlSession(
| `- error: incorrect argument labels in call (have '_:task:willPerformHTTPRedirection:newRequest:completionHandler:', expected '_:task:didSendBodyData:totalBytesSent:totalBytesExpectedToSend:')
594 | session,
595 | task: task,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:596:41: error: 'HTTPURLResponse' (aka 'AnyObject') is not convertible to 'Int64'
594 | session,
595 | task: task,
596 | willPerformHTTPRedirection: response,
| |- error: 'HTTPURLResponse' (aka 'AnyObject') is not convertible to 'Int64'
| `- note: did you mean to use 'as!' to force downcast?
597 | newRequest: request,
598 | completionHandler: completionHandler
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:608:26: error: no exact matches in call to instance method 'urlSession'
606 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
607 | ) {
608 | redirectDelegate.urlSession(
| `- error: no exact matches in call to instance method 'urlSession'
609 | session,
610 | task: task,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:140:10: note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, needNewBodyStream: @escaping @Sendable (InputStream?) -> Void)
138 | }
139 |
140 | func urlSession(
| `- note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, needNewBodyStream: @escaping @Sendable (InputStream?) -> Void)
141 | _ session: URLSession,
142 | task: URLSessionTask,
:
249 | }
250 |
251 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, didCompleteWithError: (any Error)?)
252 | #if canImport(FoundationNetworking)
253 | forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
:
263 |
264 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
265 | func urlSession(
| `- note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, didReceiveInformationalResponse: HTTPURLResponse)
266 | _ session: URLSession,
267 | task: URLSessionTask,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:650:26: error: no exact matches in call to instance method 'urlSession'
648 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
649 | ) {
650 | redirectDelegate.urlSession(
| `- error: no exact matches in call to instance method 'urlSession'
651 | session,
652 | task: task,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:140:10: note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, needNewBodyStream: @escaping @Sendable (InputStream?) -> Void)
138 | }
139 |
140 | func urlSession(
| `- note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, needNewBodyStream: @escaping @Sendable (InputStream?) -> Void)
141 | _ session: URLSession,
142 | task: URLSessionTask,
:
249 | }
250 |
251 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, didCompleteWithError: (any Error)?)
252 | #if canImport(FoundationNetworking)
253 | forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
:
263 |
264 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
265 | func urlSession(
| `- note: candidate has partially matching parameter list (URLSession, task: URLSessionTask, didReceiveInformationalResponse: HTTPURLResponse)
266 | _ session: URLSession,
267 | task: URLSessionTask,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:659:26: error: no exact matches in call to instance method 'urlSession'
657 |
658 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
659 | redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
| `- error: no exact matches in call to instance method 'urlSession'
660 | }
661 |
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:140:10: note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:needNewBodyStream:)')
138 | }
139 |
140 | func urlSession(
| `- note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:needNewBodyStream:)')
141 | _ session: URLSession,
142 | task: URLSessionTask,
:
249 | }
250 |
251 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:didCompleteWithError:)')
252 | #if canImport(FoundationNetworking)
253 | forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
:
263 |
264 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
265 | func urlSession(
| `- note: incorrect labels for candidate (have: '(_:task:didFinishCollecting:)', expected: '(_:task:didReceiveInformationalResponse:)')
266 | _ session: URLSession,
267 | task: URLSessionTask,
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/URLSessionTransport.swift:683:57: error: cannot find type 'URLSessionDataDelegate' in scope
681 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
682 | ) {
683 | guard let delegate = forwardingDelegate as? any URLSessionDataDelegate else {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
684 | completionHandler(proposedResponse)
685 | return
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[16/22] Compiling PaginatedRESTClient SameOriginRedirectDelegate.swift
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:33:34: error: cannot find type 'URLSessionDelegate' in scope
31 | bodyStreamFailureBox: FileBodyStreamFailureBox? = nil,
32 | requiresSameOrigin: Bool = true,
33 | forwardingDelegate: (any URLSessionDelegate)?
| `- error: cannot find type 'URLSessionDelegate' in scope
34 | ) {
35 | requestOrigin = Self.origin(from: requestURL)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:14:63: error: cannot find type 'URLSessionTaskDelegate' in scope
12 | /// Rejects redirects that would move an authenticated request to another origin,
13 | /// while preserving the caller's task-delegate behavior for safe redirects.
14 | final nonisolated class SameOriginRedirectDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
15 | private struct Origin: Equatable {
16 | let scheme: String
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:25:39: error: cannot find type 'URLSessionDelegate' in scope
23 | private let bodyStreamFailureBox: FileBodyStreamFailureBox?
24 | private let requiresSameOrigin: Bool
25 | private let sessionDelegate: (any URLSessionDelegate)?
| `- error: cannot find type 'URLSessionDelegate' in scope
26 | private let forwardingDelegate: (any URLSessionTaskDelegate)?
27 |
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:26:42: error: cannot find type 'URLSessionTaskDelegate' in scope
24 | private let requiresSameOrigin: Bool
25 | private let sessionDelegate: (any URLSessionDelegate)?
26 | private let forwardingDelegate: (any URLSessionTaskDelegate)?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
27 |
28 | init(
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:46:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
44 | _ session: URLSession,
45 | didReceive challenge: URLAuthenticationChallenge,
46 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
47 | ) {
48 | guard let sessionDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:44:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | func urlSession(
44 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | didReceive challenge: URLAuthenticationChallenge,
46 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:45:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | func urlSession(
44 | _ session: URLSession,
45 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
47 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:66:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | }
65 |
66 | func urlSession(_ session: URLSession, didBecomeInvalidWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | #if canImport(FoundationNetworking)
68 | sessionDelegate?.urlSession(session, didBecomeInvalidWithError: error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:78:29: error: cannot find type 'URLRequest' in scope
76 | task: URLSessionTask,
77 | willPerformHTTPRedirection response: HTTPURLResponse,
78 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
79 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
80 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:79:49: error: cannot find type 'URLRequest' in scope
77 | willPerformHTTPRedirection response: HTTPURLResponse,
78 | newRequest request: URLRequest,
79 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
80 | ) {
81 | guard allows(request) else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:75:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 |
74 | func urlSession(
75 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | task: URLSessionTask,
77 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:76:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
74 | func urlSession(
75 | _ session: URLSession,
76 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
77 | willPerformHTTPRedirection response: HTTPURLResponse,
78 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:77:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | _ session: URLSession,
76 | task: URLSessionTask,
77 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | newRequest request: URLRequest,
79 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:119:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
117 | task: URLSessionTask,
118 | didReceive challenge: URLAuthenticationChallenge,
119 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
120 | ) {
121 | guard let forwardingDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:116:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 | func urlSession(
116 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | task: URLSessionTask,
118 | didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:117:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | func urlSession(
116 | _ session: URLSession,
117 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | didReceive challenge: URLAuthenticationChallenge,
119 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:118:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | _ session: URLSession,
117 | task: URLSessionTask,
118 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
120 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:141:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 |
140 | func urlSession(
141 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | task: URLSessionTask,
143 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:142:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 | func urlSession(
141 | _ session: URLSession,
142 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
144 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:173:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 | func urlSession(
173 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 | task: URLSessionTask,
175 | didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:174:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | func urlSession(
173 | _ session: URLSession,
174 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 | didSendBodyData bytesSent: Int64,
176 | totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:201:42: error: cannot find type 'URLRequest' in scope
199 | _ session: URLSession,
200 | task: URLSessionTask,
201 | willBeginDelayedRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
202 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
203 | ) {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:202:60: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
200 | task: URLSessionTask,
201 | willBeginDelayedRequest request: URLRequest,
202 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
203 | ) {
204 | guard let forwardingDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:202:87: error: cannot find type 'URLRequest' in scope
200 | task: URLSessionTask,
201 | willBeginDelayedRequest request: URLRequest,
202 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
203 | ) {
204 | guard let forwardingDelegate else {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 | func urlSession(
199 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | task: URLSessionTask,
201 | willBeginDelayedRequest request: URLRequest,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:200:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 | func urlSession(
199 | _ session: URLSession,
200 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 | willBeginDelayedRequest request: URLRequest,
202 | completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:243:95: error: cannot find type 'URLSessionTaskMetrics' in scope
241 | }
242 |
243 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
244 | #if canImport(FoundationNetworking)
245 | forwardingDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:243:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | }
242 |
243 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 | #if canImport(FoundationNetworking)
245 | forwardingDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:243:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | }
242 |
243 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 | #if canImport(FoundationNetworking)
245 | forwardingDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:251:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | }
250 |
251 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 | #if canImport(FoundationNetworking)
253 | forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:251:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | }
250 |
251 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 | #if canImport(FoundationNetworking)
253 | forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:260:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |
259 | #if !canImport(FoundationNetworking)
260 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | forwardingDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
262 | }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:260:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |
259 | #if !canImport(FoundationNetworking)
260 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | forwardingDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
262 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:266:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
264 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
265 | func urlSession(
266 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 | task: URLSessionTask,
268 | didReceiveInformationalResponse response: HTTPURLResponse
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:267:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | func urlSession(
266 | _ session: URLSession,
267 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | didReceiveInformationalResponse response: HTTPURLResponse
269 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:268:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 | _ session: URLSession,
267 | task: URLSessionTask,
268 | didReceiveInformationalResponse response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | ) {
270 | forwardingDelegate?.urlSession?(session, task: task, didReceiveInformationalResponse: response)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:279:36: error: cannot find type 'URLRequest' in scope
277 | }
278 |
279 | private func allows(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
280 | guard let url = request.url,
281 | let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:294:61: error: cannot find type 'URLRequest' in scope
292 | }
293 |
294 | private static func containsSensitiveHeaders(_ request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
295 | let sensitive = ["authorization", "cookie", "proxy-authorization"]
296 | return (request.allHTTPHeaderFields ?? [:]).keys.contains {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:40:62: error: cannot find type 'URLSessionTaskDelegate' in scope
38 | self.requiresSameOrigin = requiresSameOrigin
39 | sessionDelegate = forwardingDelegate
40 | self.forwardingDelegate = forwardingDelegate as? any URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
41 | }
42 |
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:49:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
47 | ) {
48 | guard let sessionDelegate else {
49 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
50 | return
51 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:49:56: error: 'nil' requires a contextual type
47 | ) {
48 | guard let sessionDelegate else {
49 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
50 | return
51 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:61:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
59 | )
60 | if forwarded == nil {
61 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
62 | }
63 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:61:56: error: 'nil' requires a contextual type
59 | )
60 | if forwarded == nil {
61 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
62 | }
63 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:82:31: error: 'nil' requires a contextual type
80 | ) {
81 | guard allows(request) else {
82 | completionHandler(nil)
| `- error: 'nil' requires a contextual type
83 | return
84 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:106:62: error: reference to member 'allows' cannot be resolved without a contextual type
104 | newRequest: request,
105 | completionHandler: { [self] forwardedRequest in
106 | completionHandler(forwardedRequest.flatMap { allows($0) ? $0 : nil })
| `- error: reference to member 'allows' cannot be resolved without a contextual type
107 | }
108 | )
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:105:41: error: cannot infer type of closure parameter 'forwardedRequest' without a type annotation
103 | willPerformHTTPRedirection: response,
104 | newRequest: request,
105 | completionHandler: { [self] forwardedRequest in
| `- error: cannot infer type of closure parameter 'forwardedRequest' without a type annotation
106 | completionHandler(forwardedRequest.flatMap { allows($0) ? $0 : nil })
107 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:122:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
120 | ) {
121 | guard let forwardingDelegate else {
122 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
123 | return
124 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:122:56: error: 'nil' requires a contextual type
120 | ) {
121 | guard let forwardingDelegate else {
122 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
123 | return
124 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:135:32: error: cannot infer contextual base in reference to member 'performDefaultHandling'
133 | )
134 | if forwarded == nil {
135 | completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
136 | }
137 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:135:56: error: 'nil' requires a contextual type
133 | )
134 | if forwarded == nil {
135 | completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
136 | }
137 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:205:32: error: cannot infer contextual base in reference to member 'continueLoading'
203 | ) {
204 | guard let forwardingDelegate else {
205 | completionHandler(.continueLoading, nil)
| `- error: cannot infer contextual base in reference to member 'continueLoading'
206 | return
207 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:205:49: error: 'nil' requires a contextual type
203 | ) {
204 | guard let forwardingDelegate else {
205 | completionHandler(.continueLoading, nil)
| `- error: 'nil' requires a contextual type
206 | return
207 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:209:24: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
207 | }
208 | let validatedHandler: @Sendable (
209 | URLSession.DelayedRequestDisposition,
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
210 | URLRequest?
211 | ) -> Void = { [self] disposition, newRequest in
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:210:13: error: cannot find type 'URLRequest' in scope
208 | let validatedHandler: @Sendable (
209 | URLSession.DelayedRequestDisposition,
210 | URLRequest?
| `- error: cannot find type 'URLRequest' in scope
211 | ) -> Void = { [self] disposition, newRequest in
212 | switch disposition {
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:238:32: error: cannot infer contextual base in reference to member 'continueLoading'
236 | )
237 | if forwarded == nil {
238 | completionHandler(.continueLoading, nil)
| `- error: cannot infer contextual base in reference to member 'continueLoading'
239 | }
240 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:238:49: error: 'nil' requires a contextual type
236 | )
237 | if forwarded == nil {
238 | completionHandler(.continueLoading, nil)
| `- error: 'nil' requires a contextual type
239 | }
240 | #endif
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:296:58: error: type '(_) -> Bool' cannot conform to 'Equatable' [#ProtocolTypeNonConformance]
294 | private static func containsSensitiveHeaders(_ request: URLRequest) -> Bool {
295 | let sensitive = ["authorization", "cookie", "proxy-authorization"]
296 | return (request.allHTTPHeaderFields ?? [:]).keys.contains {
| |- error: type '(_) -> Bool' cannot conform to 'Equatable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by referencing instance method 'contains' on 'Sequence' where 'Self.Element' = '(_) -> Bool'
297 | sensitive.contains($0.lowercased())
298 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:296:48: error: type '(_) -> Bool' cannot conform to 'Hashable' [#ProtocolTypeNonConformance]
294 | private static func containsSensitiveHeaders(_ request: URLRequest) -> Bool {
295 | let sensitive = ["authorization", "cookie", "proxy-authorization"]
296 | return (request.allHTTPHeaderFields ?? [:]).keys.contains {
| |- error: type '(_) -> Bool' cannot conform to 'Hashable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by generic struct 'Dictionary' where 'Key' = '(_) -> Bool'
297 | sensitive.contains($0.lowercased())
298 | }
/host/spi-builder-workspace/.build/checkouts/PaginatedRESTClient/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:296:67: error: cannot infer type of closure parameter '$0' without a type annotation
294 | private static func containsSensitiveHeaders(_ request: URLRequest) -> Bool {
295 | let sensitive = ["authorization", "cookie", "proxy-authorization"]
296 | return (request.allHTTPHeaderFields ?? [:]).keys.contains {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
297 | sensitive.contains($0.lowercased())
298 | }
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[17/22] Compiling PaginatedRESTClient RESTTransport.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/22] Compiling SafeURLKit URLHost.swift
[19/22] Compiling SafeURLKit URLPolicy.swift
[20/22] Emitting module SafeURLKit
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:105:29: error: cannot find type 'URLRequest' in scope
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
106 | completionHandler: @escaping (URLRequest?) -> Void
107 | ) {
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:106:39: error: cannot find type 'URLRequest' in scope
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
107 | ) {
108 | guard let url = request.url else {
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:102:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | /// stored properties on a `final` class whose superclass is not `Sendable`.
101 | public func urlSession(
102 | _: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:103:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | public func urlSession(
102 | _: URLSession,
103 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | willPerformHTTPRedirection response: HTTPURLResponse,
105 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:104:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | _: URLSession,
103 | task: URLSessionTask,
104 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
105 | newRequest request: URLRequest,
106 | completionHandler: @escaping (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:137:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |
136 | private func validateRedirect(
137 | response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | generatedURL: URL
139 | ) throws(URLValidationError) -> ValidatedURL {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:84: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:214:39: error: cannot find type 'URLRequest' in scope
212 | }
213 |
214 | private func sanitized(_ request: URLRequest, redirectingFrom source: URL?) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
215 | guard
216 | let source,
/host/spi-builder-workspace/.build/checkouts/SafeURLKit/Sources/SafeURLKit/PolicyEnforcingRedirectDelegate.swift:53:63: error: cannot find type 'URLSessionTaskDelegate' in scope
51 | /// Subclassing is already impossible (`final`); do not copy this pattern onto a
52 | /// non-final type without the same immutability guarantees.
53 | public final class PolicyEnforcingRedirectDelegate: NSObject, URLSessionTaskDelegate,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
54 | @unchecked Sendable {
55 | /// The policy applied to each redirect target.
[21/22] Compiling SafeURLKit URLStringParser.swift
BUILD FAILURE 6.3 wasm