Build Information
Failed to build SwiftNetworkKit, reference main (0da705), with Swift 6.3 for Wasm on 30 Sep 2026 20:46:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
45 | data: data,
46 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | let fileURL: URL
91 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 | func download(
29 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | context = try await interceptTransferResponse(
103 | ResponseContext(
104 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 | ResponseContext(
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 | data: nil,
107 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
| `- error: 'nil' requires a contextual type
107 | request: request
108 | ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 | let redactor: Redactor
13 |
14 | func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
| `- error: cannot find type 'URLRequest' in scope
15 | guard level >= .basic else { return [] }
16 | let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 | /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 | private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
| `- error: cannot find type 'URLRequest' in scope
152 | guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 | if case .multipart = endpoint.body { return nil } // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 | func perform<E: Endpoint, T: Sendable>(
218 | _ endpoint: E,
219 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ) async throws -> T {
221 | if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 | interceptorRetries: Int,
267 | bypassCacheRead: Bool = false,
268 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | ) async throws -> T {
270 | let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 | _ entry: CachedResponse,
437 | endpoint: E,
438 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 | ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 | endpoint: E,
438 | request: URLRequest,
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 | ) throws -> T {
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: '@escaping' only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
52 |
53 | /// Archives `request` and adds it to the queue. Returns its id.
54 | func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
| `- error: cannot find type 'URLRequest' in scope
55 | guard let archived = URLRequestArchive.archive(request) else {
56 | throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 | let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 | let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | try endpoint.decode(data, response: response, using: decoder)
190 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 | static func make(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
12 | let method = request.httpMethod ?? "GET"
13 | let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 | let rawData: Data
314 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 | do {
316 | (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 | // 304 Not Modified — the cached body is still current.
332 | if response.statusCode == 304, let storedEntry {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 | var refreshed = storedEntry
334 | refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 | headers: HTTPHeaders(response.allHeaderFields),
346 | data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
345 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 | data: rawData,
347 | request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 | if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 | if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
| `- error: cannot infer contextual base in reference to member 'unauthorized'
370 | do {
371 | // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 | let url = request.url ?? URL(string: "https://cache.invalid")!
443 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 | url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 | headerFields: entry.headers.dictionary
[108/151] Compiling SwiftNetworkKit NetworkClient+Upload.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 | public let headers: HTTPHeaders
11 | public let data: Data?
12 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 | func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 | let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 | var safeRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
16 | safeRequest.httpMethod = request.httpMethod
17 | let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 | public let request: URLRequest
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
15 | self.statusCode = statusCode
16 | self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 | statusCode: statusCode,
23 | headers: redactor.redact(headers: headers),
24 | data: nil,
| `- error: 'nil' requires a contextual type
25 | request: safeRequest
26 | )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 | /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 | /// from storage otherwise.
12 | func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
| `- error: cannot find type 'URLRequest' in scope
13 | let strategy: any AuthStrategy
14 | switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 | func authorize(_ request: inout URLRequest, token: String?) async throws
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | func revalidateInBackground<E: Endpoint, T: Sendable>(
14 | _ endpoint: E,
15 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 | private func prepareTransfer<E: Endpoint>(
171 | _ endpoint: E
172 | ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
| `- error: cannot find type 'URLRequest' in scope
173 | if Task.isCancelled { throw NetworkError.cancelled }
174 | let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let data: Data
32 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | do {
34 | (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 | /// Sends `body` as the request body, reporting byte progress.
21 | func upload(
22 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 | public func upload(
37 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | let context = try await interceptTransferResponse(
42 | ResponseContext(
43 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | headers: HTTPHeaders(response.allHeaderFields),
45 | data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
42 | ResponseContext(
43 | statusCode: response.statusCode,
44 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
45 | data: data,
46 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | let fileURL: URL
91 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 | func download(
29 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | context = try await interceptTransferResponse(
103 | ResponseContext(
104 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 | ResponseContext(
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 | data: nil,
107 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
| `- error: 'nil' requires a contextual type
107 | request: request
108 | ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 | let redactor: Redactor
13 |
14 | func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
| `- error: cannot find type 'URLRequest' in scope
15 | guard level >= .basic else { return [] }
16 | let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 | /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 | private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
| `- error: cannot find type 'URLRequest' in scope
152 | guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 | if case .multipart = endpoint.body { return nil } // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 | func perform<E: Endpoint, T: Sendable>(
218 | _ endpoint: E,
219 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ) async throws -> T {
221 | if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 | interceptorRetries: Int,
267 | bypassCacheRead: Bool = false,
268 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | ) async throws -> T {
270 | let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 | _ entry: CachedResponse,
437 | endpoint: E,
438 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 | ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 | endpoint: E,
438 | request: URLRequest,
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 | ) throws -> T {
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: '@escaping' only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
52 |
53 | /// Archives `request` and adds it to the queue. Returns its id.
54 | func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
| `- error: cannot find type 'URLRequest' in scope
55 | guard let archived = URLRequestArchive.archive(request) else {
56 | throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 | let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 | let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | try endpoint.decode(data, response: response, using: decoder)
190 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 | static func make(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
12 | let method = request.httpMethod ?? "GET"
13 | let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 | let rawData: Data
314 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 | do {
316 | (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 | // 304 Not Modified — the cached body is still current.
332 | if response.statusCode == 304, let storedEntry {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 | var refreshed = storedEntry
334 | refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 | headers: HTTPHeaders(response.allHeaderFields),
346 | data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
345 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 | data: rawData,
347 | request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 | if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 | if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
| `- error: cannot infer contextual base in reference to member 'unauthorized'
370 | do {
371 | // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 | let url = request.url ?? URL(string: "https://cache.invalid")!
443 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 | url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 | headerFields: entry.headers.dictionary
[109/151] Compiling SwiftNetworkKit NetworkClient.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 | public let headers: HTTPHeaders
11 | public let data: Data?
12 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 | func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 | let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 | var safeRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
16 | safeRequest.httpMethod = request.httpMethod
17 | let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 | public let request: URLRequest
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
15 | self.statusCode = statusCode
16 | self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 | statusCode: statusCode,
23 | headers: redactor.redact(headers: headers),
24 | data: nil,
| `- error: 'nil' requires a contextual type
25 | request: safeRequest
26 | )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 | /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 | /// from storage otherwise.
12 | func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
| `- error: cannot find type 'URLRequest' in scope
13 | let strategy: any AuthStrategy
14 | switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 | func authorize(_ request: inout URLRequest, token: String?) async throws
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | func revalidateInBackground<E: Endpoint, T: Sendable>(
14 | _ endpoint: E,
15 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 | private func prepareTransfer<E: Endpoint>(
171 | _ endpoint: E
172 | ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
| `- error: cannot find type 'URLRequest' in scope
173 | if Task.isCancelled { throw NetworkError.cancelled }
174 | let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let data: Data
32 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | do {
34 | (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 | /// Sends `body` as the request body, reporting byte progress.
21 | func upload(
22 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 | public func upload(
37 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | let context = try await interceptTransferResponse(
42 | ResponseContext(
43 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | headers: HTTPHeaders(response.allHeaderFields),
45 | data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
42 | ResponseContext(
43 | statusCode: response.statusCode,
44 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
45 | data: data,
46 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | let fileURL: URL
91 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 | func download(
29 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | context = try await interceptTransferResponse(
103 | ResponseContext(
104 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 | ResponseContext(
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 | data: nil,
107 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
| `- error: 'nil' requires a contextual type
107 | request: request
108 | ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 | let redactor: Redactor
13 |
14 | func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
| `- error: cannot find type 'URLRequest' in scope
15 | guard level >= .basic else { return [] }
16 | let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 | /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 | private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
| `- error: cannot find type 'URLRequest' in scope
152 | guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 | if case .multipart = endpoint.body { return nil } // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 | func perform<E: Endpoint, T: Sendable>(
218 | _ endpoint: E,
219 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ) async throws -> T {
221 | if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 | interceptorRetries: Int,
267 | bypassCacheRead: Bool = false,
268 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | ) async throws -> T {
270 | let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 | _ entry: CachedResponse,
437 | endpoint: E,
438 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 | ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 | endpoint: E,
438 | request: URLRequest,
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 | ) throws -> T {
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: '@escaping' only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
52 |
53 | /// Archives `request` and adds it to the queue. Returns its id.
54 | func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
| `- error: cannot find type 'URLRequest' in scope
55 | guard let archived = URLRequestArchive.archive(request) else {
56 | throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 | let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 | let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | try endpoint.decode(data, response: response, using: decoder)
190 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 | static func make(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
12 | let method = request.httpMethod ?? "GET"
13 | let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 | let rawData: Data
314 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 | do {
316 | (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 | // 304 Not Modified — the cached body is still current.
332 | if response.statusCode == 304, let storedEntry {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 | var refreshed = storedEntry
334 | refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 | headers: HTTPHeaders(response.allHeaderFields),
346 | data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
345 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 | data: rawData,
347 | request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 | if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 | if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
| `- error: cannot infer contextual base in reference to member 'unauthorized'
370 | do {
371 | // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 | let url = request.url ?? URL(string: "https://cache.invalid")!
443 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 | url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 | headerFields: entry.headers.dictionary
[110/151] Compiling SwiftNetworkKit NetworkClientInitializationError.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 | public let headers: HTTPHeaders
11 | public let data: Data?
12 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:15:27: error: cannot find 'URLRequest' in scope
13 | func sanitizedForTelemetry(using redactor: Redactor) -> ResponseContext {
14 | let url = request.url.flatMap { URL(string: redactor.redact(url: $0)) } ?? URL(fileURLWithPath: "/")
15 | var safeRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
16 | safeRequest.httpMethod = request.httpMethod
17 | let requestHeaders = HTTPHeaders(request.allHTTPHeaderFields ?? [:])
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:14:78: error: cannot find type 'URLRequest' in scope
12 | public let request: URLRequest
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
15 | self.statusCode = statusCode
16 | self.headers = headers
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/NetworkError+Telemetry.swift:24:19: error: 'nil' requires a contextual type
22 | statusCode: statusCode,
23 | headers: redactor.redact(headers: headers),
24 | data: nil,
| `- error: 'nil' requires a contextual type
25 | request: safeRequest
26 | )
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Authorization.swift:12:50: error: cannot find type 'URLRequest' in scope
10 | /// ``TokenManager`` when auto-refresh is on (so an expiring token is refreshed first), or straight
11 | /// from storage otherwise.
12 | func authorize<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) async throws {
| `- error: cannot find type 'URLRequest' in scope
13 | let strategy: any AuthStrategy
14 | switch endpoint.authentication {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Authentication/Strategies/AuthStrategy.swift:13:37: error: cannot find type 'URLRequest' in scope
11 | /// (API key, basic) simply ignore it.
12 | public protocol AuthStrategy: Sendable {
13 | func authorize(_ request: inout URLRequest, token: String?) async throws
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Revalidation.swift:15:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | func revalidateInBackground<E: Endpoint, T: Sendable>(
14 | _ endpoint: E,
15 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ) {
17 | Task.detached { [self] in
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:172:24: error: cannot find type 'URLRequest' in scope
170 | private func prepareTransfer<E: Endpoint>(
171 | _ endpoint: E
172 | ) async throws -> (URLRequest, ContinuousClock.Instant, RequestID) {
| `- error: cannot find type 'URLRequest' in scope
173 | if Task.isCancelled { throw NetworkError.cancelled }
174 | let anyEndpoint = AnyEndpoint(endpoint)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:32:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let data: Data
32 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | do {
34 | (data, response) = try await transport.upload(request, from: body, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 | /// Sends `body` as the request body, reporting byte progress.
21 | func upload(
22 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 | public func upload(
37 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:43:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | let context = try await interceptTransferResponse(
42 | ResponseContext(
43 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | headers: HTTPHeaders(response.allHeaderFields),
45 | data: data,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:44:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
42 | ResponseContext(
43 | statusCode: response.statusCode,
44 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
45 | data: data,
46 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:91:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | let fileURL: URL
91 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | do {
93 | (fileURL, response) = try await transport.download(request, progress: progress)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 | func download(
29 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:104:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
102 | context = try await interceptTransferResponse(
103 | ResponseContext(
104 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:105:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
103 | ResponseContext(
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
106 | data: nil,
107 | request: request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient+Upload.swift:106:27: error: 'nil' requires a contextual type
104 | statusCode: response.statusCode,
105 | headers: HTTPHeaders(response.allHeaderFields),
106 | data: nil,
| `- error: 'nil' requires a contextual type
107 | request: request
108 | ),
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 | let redactor: Redactor
13 |
14 | func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
| `- error: cannot find type 'URLRequest' in scope
15 | guard level >= .basic else { return [] }
16 | let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:151:72: error: cannot find type 'URLRequest' in scope
149 |
150 | /// Persists `request` for later replay if the endpoint opted in and the body can be archived.
151 | private func offlineQueueID<E: Endpoint>(for endpoint: E, request: URLRequest) async -> RequestID? {
| `- error: cannot find type 'URLRequest' in scope
152 | guard let offlineQueue, case .queue(let expiresAfter) = endpoint.offlineBehavior else { return nil }
153 | if case .multipart = endpoint.body { return nil } // multipart bodies don't survive archiving
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:219:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 | func perform<E: Endpoint, T: Sendable>(
218 | _ endpoint: E,
219 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | ) async throws -> T {
221 | if Task.isCancelled { throw NetworkError.cancelled }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:268:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 | interceptorRetries: Int,
267 | bypassCacheRead: Bool = false,
268 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 | ) async throws -> T {
270 | let anyEndpoint = AnyEndpoint(endpoint)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:438:18: error: cannot find type 'URLRequest' in scope
436 | _ entry: CachedResponse,
437 | endpoint: E,
438 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
440 | ) throws -> T {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:439:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
437 | endpoint: E,
438 | request: URLRequest,
439 | decode: @escaping @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> T
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
440 | ) throws -> T {
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: '@escaping' only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
52 |
53 | /// Archives `request` and adds it to the queue. Returns its id.
54 | func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
| `- error: cannot find type 'URLRequest' in scope
55 | guard let archived = URLRequestArchive.archive(request) else {
56 | throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:188:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 | private func deduplicatedPerform<E: Endpoint>(_ endpoint: E) async throws -> E.Response {
187 | let wantsDedup = (endpoint.deduplicate ?? configuration.enableDeduplication) && endpoint.method.isCacheable
188 | let decode: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> E.Response = { data, response, decoder in
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | try endpoint.decode(data, response: response, using: decoder)
190 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 | static func make(_ request: URLRequest) -> String {
| `- error: cannot find type 'URLRequest' in scope
12 | let method = request.httpMethod ?? "GET"
13 | let url = request.url?.absoluteString ?? "?"
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:314:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |
313 | let rawData: Data
314 | let response: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 | do {
316 | (rawData, response) = try await transport.data(for: urlRequest)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:332:21: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
330 |
331 | // 304 Not Modified — the cached body is still current.
332 | if response.statusCode == 304, let storedEntry {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 | var refreshed = storedEntry
334 | refreshed.storedAt = Date()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:344:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
342 |
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
345 | headers: HTTPHeaders(response.allHeaderFields),
346 | data: rawData,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:345:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
343 | var context = ResponseContext(
344 | statusCode: response.statusCode,
345 | headers: HTTPHeaders(response.allHeaderFields),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
346 | data: rawData,
347 | request: urlRequest
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:369:31: error: cannot infer contextual base in reference to member 'unauthorized'
367 |
368 | if let error = StatusCodeMapper.map(context: context, errorMapper: configuration.errorMapper) {
369 | if error.code == .unauthorized, endpoint.authentication.isAuthenticated, let tokenManager {
| `- error: cannot infer contextual base in reference to member 'unauthorized'
370 | do {
371 | // Throws `.sessionExpired` on the second 401 for this request — no infinite loop.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/NetworkClient.swift:443:24: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
441 | let decoder = endpoint.decoder ?? configuration.defaultDecoder
442 | let url = request.url ?? URL(string: "https://cache.invalid")!
443 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
444 | url: url, statusCode: entry.statusCode, httpVersion: "HTTP/1.1",
445 | headerFields: entry.headers.dictionary
[111/151] Compiling SwiftNetworkKit NetworkConfiguration.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[112/151] Compiling SwiftNetworkKit ProgressEvent.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[113/151] Compiling SwiftNetworkKit RequestBody.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[114/151] Compiling SwiftNetworkKit RequestID.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[115/151] Compiling SwiftNetworkKit RequestPriority.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[116/151] Compiling SwiftNetworkKit SHA256Hex.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[117/151] Compiling SwiftNetworkKit EnvironmentKind.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[118/151] Compiling SwiftNetworkKit NetworkEnvironment.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[119/151] Compiling SwiftNetworkKit HTTPHeaders.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[120/151] Compiling SwiftNetworkKit HTTPMethod.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[121/151] Compiling SwiftNetworkKit HTTPStatus.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[122/151] Compiling SwiftNetworkKit QueryParameters.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[123/151] Compiling SwiftNetworkKit QueryValue.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[124/151] Compiling SwiftNetworkKit RequestBuilder.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[125/151] Compiling SwiftNetworkKit AnyEndpoint.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[126/151] Compiling SwiftNetworkKit InterceptOutcome.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[127/151] Compiling SwiftNetworkKit InterceptorChain.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/HTTPStatus.swift:20:57: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
18 |
19 | /// The localized standard reason phrase for the status code (e.g. `"not found"` for 404).
20 | public var httpStatusName: String { HTTPURLResponse.localizedString(forStatusCode: self) }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
21 | }
22 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:18:17: error: cannot find type 'URLRequest' in scope
16 | environment: NetworkEnvironment,
17 | configuration: NetworkConfiguration
18 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let base = endpoint.baseURL ?? environment.baseURL
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/HTTP/RequestBuilder.swift:48:23: error: cannot find 'URLRequest' in scope
46 | }
47 |
48 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
49 | request.httpMethod = endpoint.method.rawValue
50 | request.timeoutInterval = endpoint.timeout ?? environment.timeout
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/AnyEndpoint.swift:21:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Decodes response bytes exactly as the original endpoint would, returning its erased `Response`.
21 | let decodeThunk: @Sendable (Data, HTTPURLResponse, JSONDecoder) throws -> any Sendable
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | public init<E: Endpoint>(_ endpoint: E) {
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/Interceptors/AnyEndpoint.swift:36:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Decodes with the erased endpoint's own logic.
36 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> any Sendable {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | try decodeThunk(data, response, decoder)
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/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/Interceptors/InterceptorChain.swift:17:82: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/InterceptorChain.swift:17:27: error: cannot find type 'URLRequest' in scope
15 | var isEmpty: Bool { requestInterceptors.isEmpty && responseInterceptors.isEmpty }
16 |
17 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | var request = request
19 | for interceptor in requestInterceptors {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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 |
[128/151] Compiling SwiftNetworkKit BackoffStrategy.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) {
[129/151] Compiling SwiftNetworkKit Jitter.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) {
[130/151] Compiling SwiftNetworkKit RetryDecision.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) {
[131/151] Compiling SwiftNetworkKit RetryPolicy.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) {
[132/151] Compiling SwiftNetworkKit Pin.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) {
[133/151] Compiling SwiftNetworkKit PinningMode.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) {
[134/151] Compiling SwiftNetworkKit SPKIHeader.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) {
[135/151] Compiling SwiftNetworkKit SSLPinning.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) {
[136/151] Compiling SwiftNetworkKit SSLPinningConfiguration.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) {
[137/151] Compiling SwiftNetworkKit SSLPinningError.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) {
[138/151] Compiling SwiftNetworkKit SSLPinningFailureReason.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) {
[139/151] Compiling SwiftNetworkKit ServerTrustDecision.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) {
[140/151] Compiling SwiftNetworkKit ServerTrustEvaluating.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) {
[141/151] Compiling SwiftNetworkKit ServerTrustEvaluator.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) {
[142/151] Compiling SwiftNetworkKit SwiftNetworkKit.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) {
[143/151] Compiling SwiftNetworkKit NetworkResource.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) {
[144/151] Compiling SwiftNetworkKit Paged.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) {
BUILD FAILURE 6.3 wasm