The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftNetworkKit, reference v2.0.1 (0da705), with Swift 6.2 for Wasm on 30 Sep 2026 20:19:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                           `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 |     private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
152 |         guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 |         if case .multipart = endpoint.body { return nil }  // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     func perform<E: Endpoint, T: Sendable>(
218 |         _ endpoint: E,
219 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |     ) async throws -> T {
221 |         if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         interceptorRetries: Int,
267 |         bypassCacheRead: Bool = false,
268 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) async throws -> T {
270 |         let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 |         _ entry: CachedResponse,
437 |         endpoint: E,
438 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 |     ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 |         endpoint: E,
438 |         request: URLRequest,
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     ) throws -> T {
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: @escaping attribute only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 |         let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 |         let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |             try endpoint.decode(data, response: response, using: decoder)
190 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 |         let rawData: Data
314 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |         do {
316 |             (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 |         // 304 Not Modified — the cached body is still current.
332 |         if response.statusCode == 304, let storedEntry {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |             var refreshed = storedEntry
334 |             refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 |             headers: HTTPHeaders(response.allHeaderFields),
346 |             data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
345 |             headers: HTTPHeaders(response.allHeaderFields),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 |             data: rawData,
347 |             request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 |         if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 |             if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
    |                               `- error: cannot infer contextual base in reference to member 'unauthorized'
370 |                 do {
371 |                     // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 |         let url = request.url ?? URL(string: "https://cache.invalid")!
443 |         let response = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 |             url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 |             headerFields: entry.headers.dictionary
[121/151] Compiling SwiftNetworkKit NetworkClient+Revalidation.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 |     func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 |         let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 |         var safeRequest = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
16 |         safeRequest.httpMethod = request.httpMethod
17 |         let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 |     public let request: URLRequest
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
   |                                                                              `- error: cannot find type 'URLRequest' in scope
15 |         self.statusCode = statusCode
16 |         self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 |             statusCode: statusCode,
23 |             headers: redactor.redact(headers: headers),
24 |             data: nil,
   |                   `- error: 'nil' requires a contextual type
25 |             request: safeRequest
26 |         )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 |     /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 |     /// from storage otherwise.
12 |     func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
   |                                                  `- error: cannot find type 'URLRequest' in scope
13 |         let strategy: any AuthStrategy
14 |         switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 |     func authorize(_ request: inout URLRequest, token: String?) async throws
   |                                     `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func revalidateInBackground<E: Endpoint, T: Sendable>(
14 |         _ endpoint: E,
15 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     ) {
17 |         Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 |     private func prepareTransfer<E: Endpoint>(
171 |         _ endpoint: E
172 |     ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
    |                        `- error: cannot find type 'URLRequest' in scope
173 |         if Task.isCancelled { throw NetworkError.cancelled }
174 |         let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |         let data: Data
 32 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         do {
 34 |             (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 |     /// Sends `body` as the request body, reporting byte progress.
21 |     func upload(
22 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 |     public func upload(
37 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 41 |         let context = try await interceptTransferResponse(
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
 45 |                 data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 45 |                 data: data,
 46 |                 request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |
 90 |         let fileURL: URL
 91 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |         do {
 93 |             (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 |     func download(
29 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 |     public func download(
67 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 |             context = try await interceptTransferResponse(
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 |                     data: nil,
107 |                     request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
    |                           `- error: 'nil' requires a contextual type
107 |                     request: request
108 |                 ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 |         environment: NetworkEnvironment,
17 |         configuration: NetworkConfiguration
18 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
19 |         let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                           `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 |     private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
152 |         guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 |         if case .multipart = endpoint.body { return nil }  // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     func perform<E: Endpoint, T: Sendable>(
218 |         _ endpoint: E,
219 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |     ) async throws -> T {
221 |         if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         interceptorRetries: Int,
267 |         bypassCacheRead: Bool = false,
268 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) async throws -> T {
270 |         let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 |         _ entry: CachedResponse,
437 |         endpoint: E,
438 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 |     ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 |         endpoint: E,
438 |         request: URLRequest,
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     ) throws -> T {
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: @escaping attribute only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 |         let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 |         let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |             try endpoint.decode(data, response: response, using: decoder)
190 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 |         let rawData: Data
314 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |         do {
316 |             (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 |         // 304 Not Modified — the cached body is still current.
332 |         if response.statusCode == 304, let storedEntry {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |             var refreshed = storedEntry
334 |             refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 |             headers: HTTPHeaders(response.allHeaderFields),
346 |             data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
345 |             headers: HTTPHeaders(response.allHeaderFields),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 |             data: rawData,
347 |             request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 |         if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 |             if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
    |                               `- error: cannot infer contextual base in reference to member 'unauthorized'
370 |                 do {
371 |                     // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 |         let url = request.url ?? URL(string: "https://cache.invalid")!
443 |         let response = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 |             url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 |             headerFields: entry.headers.dictionary
[122/151] Compiling SwiftNetworkKit NetworkClient+Tracing.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 |     func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 |         let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 |         var safeRequest = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
16 |         safeRequest.httpMethod = request.httpMethod
17 |         let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 |     public let request: URLRequest
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
   |                                                                              `- error: cannot find type 'URLRequest' in scope
15 |         self.statusCode = statusCode
16 |         self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 |             statusCode: statusCode,
23 |             headers: redactor.redact(headers: headers),
24 |             data: nil,
   |                   `- error: 'nil' requires a contextual type
25 |             request: safeRequest
26 |         )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 |     /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 |     /// from storage otherwise.
12 |     func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
   |                                                  `- error: cannot find type 'URLRequest' in scope
13 |         let strategy: any AuthStrategy
14 |         switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 |     func authorize(_ request: inout URLRequest, token: String?) async throws
   |                                     `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func revalidateInBackground<E: Endpoint, T: Sendable>(
14 |         _ endpoint: E,
15 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     ) {
17 |         Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 |     private func prepareTransfer<E: Endpoint>(
171 |         _ endpoint: E
172 |     ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
    |                        `- error: cannot find type 'URLRequest' in scope
173 |         if Task.isCancelled { throw NetworkError.cancelled }
174 |         let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |         let data: Data
 32 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         do {
 34 |             (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 |     /// Sends `body` as the request body, reporting byte progress.
21 |     func upload(
22 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 |     public func upload(
37 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 41 |         let context = try await interceptTransferResponse(
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
 45 |                 data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 45 |                 data: data,
 46 |                 request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |
 90 |         let fileURL: URL
 91 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |         do {
 93 |             (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 |     func download(
29 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 |     public func download(
67 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 |             context = try await interceptTransferResponse(
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 |                     data: nil,
107 |                     request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
    |                           `- error: 'nil' requires a contextual type
107 |                     request: request
108 |                 ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 |         environment: NetworkEnvironment,
17 |         configuration: NetworkConfiguration
18 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
19 |         let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                           `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 |     private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
152 |         guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 |         if case .multipart = endpoint.body { return nil }  // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     func perform<E: Endpoint, T: Sendable>(
218 |         _ endpoint: E,
219 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |     ) async throws -> T {
221 |         if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         interceptorRetries: Int,
267 |         bypassCacheRead: Bool = false,
268 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) async throws -> T {
270 |         let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 |         _ entry: CachedResponse,
437 |         endpoint: E,
438 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 |     ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 |         endpoint: E,
438 |         request: URLRequest,
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     ) throws -> T {
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: @escaping attribute only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 |         let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 |         let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |             try endpoint.decode(data, response: response, using: decoder)
190 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 |         let rawData: Data
314 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |         do {
316 |             (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 |         // 304 Not Modified — the cached body is still current.
332 |         if response.statusCode == 304, let storedEntry {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |             var refreshed = storedEntry
334 |             refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 |             headers: HTTPHeaders(response.allHeaderFields),
346 |             data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
345 |             headers: HTTPHeaders(response.allHeaderFields),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 |             data: rawData,
347 |             request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 |         if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 |             if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
    |                               `- error: cannot infer contextual base in reference to member 'unauthorized'
370 |                 do {
371 |                     // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 |         let url = request.url ?? URL(string: "https://cache.invalid")!
443 |         let response = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 |             url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 |             headerFields: entry.headers.dictionary
[123/151] Compiling SwiftNetworkKit NetworkClient+Transport.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 |     func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 |         let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 |         var safeRequest = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
16 |         safeRequest.httpMethod = request.httpMethod
17 |         let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 |     public let request: URLRequest
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
   |                                                                              `- error: cannot find type 'URLRequest' in scope
15 |         self.statusCode = statusCode
16 |         self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 |             statusCode: statusCode,
23 |             headers: redactor.redact(headers: headers),
24 |             data: nil,
   |                   `- error: 'nil' requires a contextual type
25 |             request: safeRequest
26 |         )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 |     /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 |     /// from storage otherwise.
12 |     func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
   |                                                  `- error: cannot find type 'URLRequest' in scope
13 |         let strategy: any AuthStrategy
14 |         switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 |     func authorize(_ request: inout URLRequest, token: String?) async throws
   |                                     `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func revalidateInBackground<E: Endpoint, T: Sendable>(
14 |         _ endpoint: E,
15 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     ) {
17 |         Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 |     private func prepareTransfer<E: Endpoint>(
171 |         _ endpoint: E
172 |     ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
    |                        `- error: cannot find type 'URLRequest' in scope
173 |         if Task.isCancelled { throw NetworkError.cancelled }
174 |         let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |         let data: Data
 32 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         do {
 34 |             (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 |     /// Sends `body` as the request body, reporting byte progress.
21 |     func upload(
22 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 |     public func upload(
37 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 41 |         let context = try await interceptTransferResponse(
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
 45 |                 data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 45 |                 data: data,
 46 |                 request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |
 90 |         let fileURL: URL
 91 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |         do {
 93 |             (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 |     func download(
29 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 |     public func download(
67 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 |             context = try await interceptTransferResponse(
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 |                     data: nil,
107 |                     request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
    |                           `- error: 'nil' requires a contextual type
107 |                     request: request
108 |                 ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 |         environment: NetworkEnvironment,
17 |         configuration: NetworkConfiguration
18 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
19 |         let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                           `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 |     private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
152 |         guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 |         if case .multipart = endpoint.body { return nil }  // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     func perform<E: Endpoint, T: Sendable>(
218 |         _ endpoint: E,
219 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |     ) async throws -> T {
221 |         if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         interceptorRetries: Int,
267 |         bypassCacheRead: Bool = false,
268 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) async throws -> T {
270 |         let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 |         _ entry: CachedResponse,
437 |         endpoint: E,
438 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 |     ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 |         endpoint: E,
438 |         request: URLRequest,
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     ) throws -> T {
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: @escaping attribute only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 |         let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 |         let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |             try endpoint.decode(data, response: response, using: decoder)
190 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 |         let rawData: Data
314 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |         do {
316 |             (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 |         // 304 Not Modified — the cached body is still current.
332 |         if response.statusCode == 304, let storedEntry {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |             var refreshed = storedEntry
334 |             refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 |             headers: HTTPHeaders(response.allHeaderFields),
346 |             data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
345 |             headers: HTTPHeaders(response.allHeaderFields),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 |             data: rawData,
347 |             request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 |         if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 |             if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
    |                               `- error: cannot infer contextual base in reference to member 'unauthorized'
370 |                 do {
371 |                     // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 |         let url = request.url ?? URL(string: "https://cache.invalid")!
443 |         let response = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 |             url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 |             headerFields: entry.headers.dictionary
[124/151] Compiling SwiftNetworkKit NetworkClient+Upload.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 |     func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 |         let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 |         var safeRequest = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
16 |         safeRequest.httpMethod = request.httpMethod
17 |         let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 |     public let request: URLRequest
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
   |                                                                              `- error: cannot find type 'URLRequest' in scope
15 |         self.statusCode = statusCode
16 |         self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 |             statusCode: statusCode,
23 |             headers: redactor.redact(headers: headers),
24 |             data: nil,
   |                   `- error: 'nil' requires a contextual type
25 |             request: safeRequest
26 |         )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 |     /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 |     /// from storage otherwise.
12 |     func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
   |                                                  `- error: cannot find type 'URLRequest' in scope
13 |         let strategy: any AuthStrategy
14 |         switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 |     func authorize(_ request: inout URLRequest, token: String?) async throws
   |                                     `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func revalidateInBackground<E: Endpoint, T: Sendable>(
14 |         _ endpoint: E,
15 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     ) {
17 |         Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 |     private func prepareTransfer<E: Endpoint>(
171 |         _ endpoint: E
172 |     ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
    |                        `- error: cannot find type 'URLRequest' in scope
173 |         if Task.isCancelled { throw NetworkError.cancelled }
174 |         let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |         let data: Data
 32 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         do {
 34 |             (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 |     /// Sends `body` as the request body, reporting byte progress.
21 |     func upload(
22 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 |     public func upload(
37 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 41 |         let context = try await interceptTransferResponse(
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
 45 |                 data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 45 |                 data: data,
 46 |                 request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |
 90 |         let fileURL: URL
 91 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |         do {
 93 |             (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 |     func download(
29 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 |     public func download(
67 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 |             context = try await interceptTransferResponse(
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 |                     data: nil,
107 |                     request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
    |                           `- error: 'nil' requires a contextual type
107 |                     request: request
108 |                 ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 |         environment: NetworkEnvironment,
17 |         configuration: NetworkConfiguration
18 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
19 |         let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                           `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 |     private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
152 |         guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 |         if case .multipart = endpoint.body { return nil }  // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     func perform<E: Endpoint, T: Sendable>(
218 |         _ endpoint: E,
219 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |     ) async throws -> T {
221 |         if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         interceptorRetries: Int,
267 |         bypassCacheRead: Bool = false,
268 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) async throws -> T {
270 |         let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 |         _ entry: CachedResponse,
437 |         endpoint: E,
438 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 |     ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 |         endpoint: E,
438 |         request: URLRequest,
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     ) throws -> T {
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: @escaping attribute only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 |         let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 |         let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |             try endpoint.decode(data, response: response, using: decoder)
190 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 |         let rawData: Data
314 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |         do {
316 |             (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 |         // 304 Not Modified — the cached body is still current.
332 |         if response.statusCode == 304, let storedEntry {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |             var refreshed = storedEntry
334 |             refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 |             headers: HTTPHeaders(response.allHeaderFields),
346 |             data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
345 |             headers: HTTPHeaders(response.allHeaderFields),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 |             data: rawData,
347 |             request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 |         if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 |             if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
    |                               `- error: cannot infer contextual base in reference to member 'unauthorized'
370 |                 do {
371 |                     // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 |         let url = request.url ?? URL(string: "https://cache.invalid")!
443 |         let response = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 |             url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 |             headerFields: entry.headers.dictionary
[125/151] Compiling SwiftNetworkKit NetworkClient.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 |     func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 |         let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 |         var safeRequest = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
16 |         safeRequest.httpMethod = request.httpMethod
17 |         let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 |     public let request: URLRequest
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
   |                                                                              `- error: cannot find type 'URLRequest' in scope
15 |         self.statusCode = statusCode
16 |         self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 |             statusCode: statusCode,
23 |             headers: redactor.redact(headers: headers),
24 |             data: nil,
   |                   `- error: 'nil' requires a contextual type
25 |             request: safeRequest
26 |         )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 |     /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 |     /// from storage otherwise.
12 |     func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
   |                                                  `- error: cannot find type 'URLRequest' in scope
13 |         let strategy: any AuthStrategy
14 |         switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 |     func authorize(_ request: inout URLRequest, token: String?) async throws
   |                                     `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func revalidateInBackground<E: Endpoint, T: Sendable>(
14 |         _ endpoint: E,
15 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     ) {
17 |         Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 |     private func prepareTransfer<E: Endpoint>(
171 |         _ endpoint: E
172 |     ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
    |                        `- error: cannot find type 'URLRequest' in scope
173 |         if Task.isCancelled { throw NetworkError.cancelled }
174 |         let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |         let data: Data
 32 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         do {
 34 |             (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 |     /// Sends `body` as the request body, reporting byte progress.
21 |     func upload(
22 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 |     public func upload(
37 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 41 |         let context = try await interceptTransferResponse(
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
 45 |                 data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 45 |                 data: data,
 46 |                 request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |
 90 |         let fileURL: URL
 91 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |         do {
 93 |             (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 |     func download(
29 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 |     public func download(
67 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 |             context = try await interceptTransferResponse(
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 |                     data: nil,
107 |                     request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
    |                           `- error: 'nil' requires a contextual type
107 |                     request: request
108 |                 ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 |         environment: NetworkEnvironment,
17 |         configuration: NetworkConfiguration
18 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
19 |         let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                           `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 |     private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
152 |         guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 |         if case .multipart = endpoint.body { return nil }  // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     func perform<E: Endpoint, T: Sendable>(
218 |         _ endpoint: E,
219 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |     ) async throws -> T {
221 |         if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         interceptorRetries: Int,
267 |         bypassCacheRead: Bool = false,
268 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) async throws -> T {
270 |         let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 |         _ entry: CachedResponse,
437 |         endpoint: E,
438 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 |     ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 |         endpoint: E,
438 |         request: URLRequest,
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     ) throws -> T {
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: @escaping attribute only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 |         let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 |         let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |             try endpoint.decode(data, response: response, using: decoder)
190 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 |         let rawData: Data
314 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |         do {
316 |             (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 |         // 304 Not Modified — the cached body is still current.
332 |         if response.statusCode == 304, let storedEntry {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |             var refreshed = storedEntry
334 |             refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 |             headers: HTTPHeaders(response.allHeaderFields),
346 |             data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
345 |             headers: HTTPHeaders(response.allHeaderFields),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 |             data: rawData,
347 |             request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 |         if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 |             if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
    |                               `- error: cannot infer contextual base in reference to member 'unauthorized'
370 |                 do {
371 |                     // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 |         let url = request.url ?? URL(string: "https://cache.invalid")!
443 |         let response = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 |             url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 |             headerFields: entry.headers.dictionary
[126/151] Compiling SwiftNetworkKit NetworkClientInitializationError.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 |     func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 |         let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 |         var safeRequest = URLRequest(url: url)
   |                           `- error: cannot find 'URLRequest' in scope
16 |         safeRequest.httpMethod = request.httpMethod
17 |         let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 |     public let request: URLRequest
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
   |                                                                              `- error: cannot find type 'URLRequest' in scope
15 |         self.statusCode = statusCode
16 |         self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 |             statusCode: statusCode,
23 |             headers: redactor.redact(headers: headers),
24 |             data: nil,
   |                   `- error: 'nil' requires a contextual type
25 |             request: safeRequest
26 |         )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 |     /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 |     /// from storage otherwise.
12 |     func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
   |                                                  `- error: cannot find type 'URLRequest' in scope
13 |         let strategy: any AuthStrategy
14 |         switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 |     func authorize(_ request: inout URLRequest, token: String?) async throws
   |                                     `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |     func revalidateInBackground<E: Endpoint, T: Sendable>(
14 |         _ endpoint: E,
15 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     ) {
17 |         Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 |     private func prepareTransfer<E: Endpoint>(
171 |         _ endpoint: E
172 |     ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
    |                        `- error: cannot find type 'URLRequest' in scope
173 |         if Task.isCancelled { throw NetworkError.cancelled }
174 |         let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |         let data: Data
 32 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |         do {
 34 |             (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 |     /// Sends `body` as the request body, reporting byte progress.
21 |     func upload(
22 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 |     public func upload(
37 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 41 |         let context = try await interceptTransferResponse(
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
 45 |                 data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 42 |             ResponseContext(
 43 |                 statusCode: response.statusCode,
 44 |                 headers: HTTPHeaders(response.allHeaderFields),
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 45 |                 data: data,
 46 |                 request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |
 90 |         let fileURL: URL
 91 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |         do {
 93 |             (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 |     func download(
29 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 |     public func download(
67 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 |             context = try await interceptTransferResponse(
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 |                 ResponseContext(
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
    |                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 |                     data: nil,
107 |                     request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 |                     statusCode: response.statusCode,
105 |                     headers: HTTPHeaders(response.allHeaderFields),
106 |                     data: nil,
    |                           `- error: 'nil' requires a contextual type
107 |                     request: request
108 |                 ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 |         environment: NetworkEnvironment,
17 |         configuration: NetworkConfiguration
18 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
19 |         let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 |     var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                           `- error: cannot find type 'URLRequest' in scope
18 |         var request = request
19 |         for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 |     /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 |     private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
152 |         guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 |         if case .multipart = endpoint.body { return nil }  // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |     func perform<E: Endpoint, T: Sendable>(
218 |         _ endpoint: E,
219 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 |     ) async throws -> T {
221 |         if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         interceptorRetries: Int,
267 |         bypassCacheRead: Bool = false,
268 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) async throws -> T {
270 |         let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 |         _ entry: CachedResponse,
437 |         endpoint: E,
438 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 |     ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 |         endpoint: E,
438 |         request: URLRequest,
439 |         decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 |     ) throws -> T {
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: @escaping attribute only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |     private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 |         let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 |         let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 |             try endpoint.decode(data, response: response, using: decoder)
190 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 |         let rawData: Data
314 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |         do {
316 |             (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 |         // 304 Not Modified — the cached body is still current.
332 |         if response.statusCode == 304, let storedEntry {
    |                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |             var refreshed = storedEntry
334 |             refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
    |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 |             headers: HTTPHeaders(response.allHeaderFields),
346 |             data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 |         var context = ResponseContext(
344 |             statusCode: response.statusCode,
345 |             headers: HTTPHeaders(response.allHeaderFields),
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 |             data: rawData,
347 |             request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 |         if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 |             if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
    |                               `- error: cannot infer contextual base in reference to member 'unauthorized'
370 |                 do {
371 |                     // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 |         let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 |         let url = request.url ?? URL(string: "https://cache.invalid")!
443 |         let response = HTTPURLResponse(
    |                        `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 |             url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 |             headerFields: entry.headers.dictionary
[127/151] Compiling SwiftNetworkKit MemoryCacheStore.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[128/151] Compiling SwiftNetworkKit ResponseCache.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[129/151] Compiling SwiftNetworkKit ContinuousClockAdapter.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[130/151] Compiling SwiftNetworkKit NetworkClock.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[131/151] Compiling SwiftNetworkKit NetworkClient+Publishers.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[132/151] Compiling SwiftNetworkKit TransferState.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[133/151] Compiling SwiftNetworkKit ConnectionType.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[134/151] Compiling SwiftNetworkKit NetworkMonitor.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[135/151] Compiling SwiftNetworkKit NetworkStatus.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[136/151] Compiling SwiftNetworkKit NetworkStatusBroadcaster.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[137/151] Compiling SwiftNetworkKit PathNetworkMonitor.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[138/151] Compiling SwiftNetworkKit AuthFingerprint.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[139/151] Compiling SwiftNetworkKit AuthRequirement.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[140/151] Compiling SwiftNetworkKit JSONDecoder+NetworkKit.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[141/151] Compiling SwiftNetworkKit JSONEncoder+NetworkKit.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[142/151] Compiling SwiftNetworkKit EmptyResponse.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[143/151] Compiling SwiftNetworkKit Endpoint.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
[144/151] Compiling SwiftNetworkKit EndpointDecodingFailure.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! 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
BUILD FAILURE 6.2 wasm