The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftNetworkKit, reference main (0da705), with Swift 6.2 for Wasm on 30 Sep 2026 20:25:58 UTC.

Build Command

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

 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[137/151] Compiling SwiftNetworkKit TracingInterceptor.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[138/151] Compiling SwiftNetworkKit NetworkTransport.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[139/151] Compiling SwiftNetworkKit TransportSessionDelegate.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[140/151] Compiling SwiftNetworkKit TransportTaskDelegate.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[141/151] Compiling SwiftNetworkKit URLSessionTransport.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[142/151] Compiling SwiftNetworkKit MultipartFormData.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[143/151] Compiling SwiftNetworkKit MultipartPart.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[144/151] Compiling SwiftNetworkKit UploadBody.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/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
 43 |     /// one repeats once exhausted).
 44 |     struct Rule: @unchecked Sendable {
 45 |         let matches: (URLRequest) -> Bool
    |                       `- error: cannot find type 'URLRequest' in scope
 46 |         var outcomes: [Outcome]
 47 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
 50 |     private var queue: [Outcome] = []
 51 |     private var rules: [Rule] = []
 52 |     private var recorded: [URLRequest] = []
    |                            `- error: cannot find type 'URLRequest' in scope
 53 |     private let defaultOutcome: Outcome
 54 |     private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
 63 |
 64 |     /// Requests captured so far, in order.
 65 |     @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
 66 |         lock.lock()
 67 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
 95 |     @discardableResult
 96 |     @_spi(SwiftNetworkKitTesting) public func stub(
 97 |         matching predicate: @escaping @Sendable (URLRequest) -> Bool,
    |                                                  `- error: cannot find type 'URLRequest' in scope
 98 |         with outcomes: Outcome...
 99 |     ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
128 |         let outcome: Outcome = {
129 |             lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 |     }
126 |
127 |     @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
    |                                                                                                    `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |         let outcome: Outcome = {
129 |             lock.lock()
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: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/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: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/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 |         case .success(let status, let headers, let body):
148 |             let url = request.url ?? URL(string: "https://mock.invalid")!
149 |             let response = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 |                 url: url,
151 |                 statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
 27 |         var response: Response?
 28 |         var error: (any Error)?
 29 |         var lastRequest: URLRequest?
    |                          `- error: cannot find type 'URLRequest' in scope
 30 |     }
 31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
 51 |
 52 |     /// The most recent request that reached the stub.
 53 |     @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
    |                                                                  `- error: cannot find type 'URLRequest' in scope
 54 |         lock.lock()
 55 |         defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
 66 |     // MARK: URLProtocol
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
    |                                                      `- error: cannot find type 'URLRequest' in scope
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                                             `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
 67 |
 68 |     override public class func canInit(with request: URLRequest) -> Bool { true }
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
    |                                                              `- error: cannot find type 'URLRequest' in scope
 70 |
 71 |     override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
 69 |     override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
 70 |
 71 |     override public func startLoading() {
    |                          `- error: method does not override any method from its superclass
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
 97 |     }
 98 |
 99 |     override public func stopLoading() {}
    |                          `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | ///
 17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
 18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
    |                                                                   `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |
 20 |     @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
  |                  `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
 39 |         lock.lock()
 40 |         defer { lock.unlock() }
 41 |         state = State(
    |                      `- error: argument passed to call that takes no arguments
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
 43 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                          `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
 40 |         defer { lock.unlock() }
 41 |         state = State(
 42 |             response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
    |                                                                                                            `- error: 'nil' requires a contextual type
 43 |     }
 44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                      `- error: argument passed to call that takes no arguments
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
 47 |         lock.lock()
 48 |         defer { lock.unlock() }
 49 |         state = State(response: nil, error: error, lastRequest: nil)
    |                                                                 `- error: 'nil' requires a contextual type
 50 |     }
 51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
 71 |     override public func startLoading() {
 72 |         Self.lock.lock()
 73 |         Self.state.lastRequest = request
    |                                  `- error: cannot find 'request' in scope
 74 |         let response = Self.state.response
 75 |         let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
 77 |
 78 |         if let error {
 79 |             client?.urlProtocol(self, didFailWithError: error)
    |             `- error: cannot find 'client' in scope
 80 |             return
 81 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
 81 |         }
 82 |
 83 |         guard let response, let url = request.url else {
    |                                       `- error: cannot find 'request' in scope
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
 85 |             return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
 82 |
 83 |         guard let response, let url = request.url else {
 84 |             client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
    |             `- error: cannot find 'client' in scope
 85 |             return
 86 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 86 |         }
 87 |
 88 |         let httpResponse = HTTPURLResponse(
    |                            `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 89 |             url: url,
 90 |             statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |         `- error: cannot find 'client' in scope
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
 92 |             headerFields: response.headers
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
    |                                                                                  `- error: cannot infer contextual base in reference to member 'notAllowed'
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
 93 |         )!
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
    |         `- error: cannot find 'client' in scope
 96 |         client?.urlProtocolDidFinishLoading(self)
 97 |     }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
 94 |         client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
 95 |         client?.urlProtocol(self, didLoad: response.body)
 96 |         client?.urlProtocolDidFinishLoading(self)
    |         `- error: cannot find 'client' in scope
 97 |     }
 98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                                                                         `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
19 |         var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 |     /// Sends `body` as the request body, reporting byte 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:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |         from body: UploadBody,
24 |         progress: (@Sendable (ProgressEvent) -> Void)?
25 |     ) async throws -> (Data, HTTPURLResponse)
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
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:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 |         _ request: URLRequest,
30 |         progress: (@Sendable (ProgressEvent) -> Void)?
31 |     ) async throws -> (URL, HTTPURLResponse)
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
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: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/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         from body: UploadBody,
39 |         progress: (@Sendable (ProgressEvent) -> Void)?
40 |     ) async throws -> (Data, HTTPURLResponse) {
   |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         var request = request
42 |         let payload: Data
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: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/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |         _ request: URLRequest,
68 |         progress: (@Sendable (ProgressEvent) -> Void)?
69 |     ) async throws -> (URL, HTTPURLResponse) {
   |                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         let (data, response) = try await data(for: request)
71 |         let url = FileManager.default.temporaryDirectory
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/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 64 |     /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
 65 |     public func writeEncoded(to url: URL) throws {
 66 |         FileManager.default.createFile(atPath: url.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 67 |         guard let handle = try? FileHandle(forWritingTo: url) else {
 68 |             throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
BUILD FAILURE 6.2 wasm