Build Information
Failed to build SwiftNetworkKit, reference v2.0.1 (0da705), with Swift 6.1 for Wasm on 30 Sep 2026 20:19:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
25 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | _ request: URLRequest,
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 | public func upload(
37 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
40 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | var request = request
42 | let payload: Data
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ request: URLRequest,
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let (data, response) = try await data(for: request)
71 | let url = FileManager.default.temporaryDirectory
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
64 | /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
65 | public func writeEncoded(to url: URL) throws {
66 | FileManager.default.createFile(atPath: url.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
67 | guard let handle = try? FileHandle(forWritingTo: url) else {
68 | throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[104/148] Compiling SwiftNetworkKit MultipartFormData.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 | public let headers: HTTPHeaders
11 | public let data: Data?
12 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
43 | /// one repeats once exhausted).
44 | struct Rule: @unchecked Sendable {
45 | let matches: (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
46 | var outcomes: [Outcome]
47 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
50 | private var queue: [Outcome] = []
51 | private var rules: [Rule] = []
52 | private var recorded: [URLRequest] = []
| `- error: cannot find type 'URLRequest' in scope
53 | private let defaultOutcome: Outcome
54 | private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
63 |
64 | /// Requests captured so far, in order.
65 | @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
| `- error: cannot find type 'URLRequest' in scope
66 | lock.lock()
67 | defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
95 | @discardableResult
96 | @_spi(SwiftNetworkKitTesting) public func stub(
97 | matching predicate: @escaping @Sendable (URLRequest) -> Bool,
| `- error: cannot find type 'URLRequest' in scope
98 | with outcomes: Outcome...
99 | ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
128 | let outcome: Outcome = {
129 | lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | }
126 |
127 | @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | let outcome: Outcome = {
129 | lock.lock()
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 | /// Sends `body` as the request body, reporting byte progress.
21 | func upload(
22 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 | func download(
29 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 | case .success(let status, let headers, let body):
148 | let url = request.url ?? URL(string: "https://mock.invalid")!
149 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 | url: url,
151 | statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | var response: Response?
28 | var error: (any Error)?
29 | var lastRequest: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
30 | }
31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
51 |
52 | /// The most recent request that reached the stub.
53 | @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
54 | lock.lock()
55 | defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
66 | // MARK: URLProtocol
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
| `- error: cannot find type 'URLRequest' in scope
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
70 |
71 | override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
70 |
71 | override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
70 |
71 | override public func startLoading() {
| `- error: method does not override any method from its superclass
72 | Self.lock.lock()
73 | Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
97 | }
98 |
99 | override public func stopLoading() {}
| `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ///
17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
39 | lock.lock()
40 | defer { lock.unlock() }
41 | state = State(
| `- error: argument passed to call that takes no arguments
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
43 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
40 | defer { lock.unlock() }
41 | state = State(
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
| `- error: 'nil' requires a contextual type
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
40 | defer { lock.unlock() }
41 | state = State(
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
| `- error: 'nil' requires a contextual type
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: argument passed to call that takes no arguments
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: 'nil' requires a contextual type
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: 'nil' requires a contextual type
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
71 | override public func startLoading() {
72 | Self.lock.lock()
73 | Self.state.lastRequest = request
| `- error: cannot find 'request' in scope
74 | let response = Self.state.response
75 | let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
77 |
78 | if let error {
79 | client?.urlProtocol(self, didFailWithError: error)
| `- error: cannot find 'client' in scope
80 | return
81 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
81 | }
82 |
83 | guard let response, let url = request.url else {
| `- error: cannot find 'request' in scope
84 | client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
85 | return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
82 |
83 | guard let response, let url = request.url else {
84 | client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
| `- error: cannot find 'client' in scope
85 | return
86 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 |
88 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
89 | url: url,
90 | statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
92 | headerFields: response.headers
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
| `- error: cannot find 'client' in scope
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
92 | headerFields: response.headers
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
| `- error: cannot infer contextual base in reference to member 'notAllowed'
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
95 | client?.urlProtocol(self, didLoad: response.body)
| `- error: cannot find 'client' in scope
96 | client?.urlProtocolDidFinishLoading(self)
97 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
| `- error: cannot find 'client' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
25 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | _ request: URLRequest,
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 | public func upload(
37 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
40 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | var request = request
42 | let payload: Data
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ request: URLRequest,
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let (data, response) = try await data(for: request)
71 | let url = FileManager.default.temporaryDirectory
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
64 | /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
65 | public func writeEncoded(to url: URL) throws {
66 | FileManager.default.createFile(atPath: url.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
67 | guard let handle = try? FileHandle(forWritingTo: url) else {
68 | throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[105/148] Compiling SwiftNetworkKit MultipartPart.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 | public let headers: HTTPHeaders
11 | public let data: Data?
12 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
43 | /// one repeats once exhausted).
44 | struct Rule: @unchecked Sendable {
45 | let matches: (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
46 | var outcomes: [Outcome]
47 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
50 | private var queue: [Outcome] = []
51 | private var rules: [Rule] = []
52 | private var recorded: [URLRequest] = []
| `- error: cannot find type 'URLRequest' in scope
53 | private let defaultOutcome: Outcome
54 | private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
63 |
64 | /// Requests captured so far, in order.
65 | @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
| `- error: cannot find type 'URLRequest' in scope
66 | lock.lock()
67 | defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
95 | @discardableResult
96 | @_spi(SwiftNetworkKitTesting) public func stub(
97 | matching predicate: @escaping @Sendable (URLRequest) -> Bool,
| `- error: cannot find type 'URLRequest' in scope
98 | with outcomes: Outcome...
99 | ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
128 | let outcome: Outcome = {
129 | lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | }
126 |
127 | @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | let outcome: Outcome = {
129 | lock.lock()
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 | /// Sends `body` as the request body, reporting byte progress.
21 | func upload(
22 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 | func download(
29 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 | case .success(let status, let headers, let body):
148 | let url = request.url ?? URL(string: "https://mock.invalid")!
149 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 | url: url,
151 | statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | var response: Response?
28 | var error: (any Error)?
29 | var lastRequest: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
30 | }
31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
51 |
52 | /// The most recent request that reached the stub.
53 | @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
54 | lock.lock()
55 | defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
66 | // MARK: URLProtocol
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
| `- error: cannot find type 'URLRequest' in scope
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
70 |
71 | override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
70 |
71 | override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
70 |
71 | override public func startLoading() {
| `- error: method does not override any method from its superclass
72 | Self.lock.lock()
73 | Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
97 | }
98 |
99 | override public func stopLoading() {}
| `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ///
17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
39 | lock.lock()
40 | defer { lock.unlock() }
41 | state = State(
| `- error: argument passed to call that takes no arguments
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
43 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
40 | defer { lock.unlock() }
41 | state = State(
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
| `- error: 'nil' requires a contextual type
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
40 | defer { lock.unlock() }
41 | state = State(
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
| `- error: 'nil' requires a contextual type
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: argument passed to call that takes no arguments
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: 'nil' requires a contextual type
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: 'nil' requires a contextual type
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
71 | override public func startLoading() {
72 | Self.lock.lock()
73 | Self.state.lastRequest = request
| `- error: cannot find 'request' in scope
74 | let response = Self.state.response
75 | let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
77 |
78 | if let error {
79 | client?.urlProtocol(self, didFailWithError: error)
| `- error: cannot find 'client' in scope
80 | return
81 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
81 | }
82 |
83 | guard let response, let url = request.url else {
| `- error: cannot find 'request' in scope
84 | client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
85 | return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
82 |
83 | guard let response, let url = request.url else {
84 | client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
| `- error: cannot find 'client' in scope
85 | return
86 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 |
88 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
89 | url: url,
90 | statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
92 | headerFields: response.headers
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
| `- error: cannot find 'client' in scope
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
92 | headerFields: response.headers
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
| `- error: cannot infer contextual base in reference to member 'notAllowed'
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
95 | client?.urlProtocol(self, didLoad: response.body)
| `- error: cannot find 'client' in scope
96 | client?.urlProtocolDidFinishLoading(self)
97 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
| `- error: cannot find 'client' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
25 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | _ request: URLRequest,
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 | public func upload(
37 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
40 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | var request = request
42 | let payload: Data
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ request: URLRequest,
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let (data, response) = try await data(for: request)
71 | let url = FileManager.default.temporaryDirectory
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
64 | /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
65 | public func writeEncoded(to url: URL) throws {
66 | FileManager.default.createFile(atPath: url.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
67 | guard let handle = try? FileHandle(forWritingTo: url) else {
68 | throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[106/148] Compiling SwiftNetworkKit UploadBody.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 | public let headers: HTTPHeaders
11 | public let data: Data?
12 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:45:23: error: cannot find type 'URLRequest' in scope
43 | /// one repeats once exhausted).
44 | struct Rule: @unchecked Sendable {
45 | let matches: (URLRequest) -> Bool
| `- error: cannot find type 'URLRequest' in scope
46 | var outcomes: [Outcome]
47 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:52:28: error: cannot find type 'URLRequest' in scope
50 | private var queue: [Outcome] = []
51 | private var rules: [Rule] = []
52 | private var recorded: [URLRequest] = []
| `- error: cannot find type 'URLRequest' in scope
53 | private let defaultOutcome: Outcome
54 | private let latency: Duration
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:65:65: error: cannot find type 'URLRequest' in scope
63 |
64 | /// Requests captured so far, in order.
65 | @_spi(SwiftNetworkKitTesting) public var recordedRequests: [URLRequest] {
| `- error: cannot find type 'URLRequest' in scope
66 | lock.lock()
67 | defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:97:50: error: cannot find type 'URLRequest' in scope
95 | @discardableResult
96 | @_spi(SwiftNetworkKitTesting) public func stub(
97 | matching predicate: @escaping @Sendable (URLRequest) -> Bool,
| `- error: cannot find type 'URLRequest' in scope
98 | with outcomes: Outcome...
99 | ) -> Self {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:65: error: cannot find type 'URLRequest' in scope
125 | }
126 |
127 | @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
128 | let outcome: Outcome = {
129 | lock.lock()
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:127:100: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | }
126 |
127 | @_spi(SwiftNetworkKitTesting) public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 | let outcome: Outcome = {
129 | lock.lock()
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:22:20: error: cannot find type 'URLRequest' in scope
20 | /// Sends `body` as the request body, reporting byte progress.
21 | func upload(
22 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:29:20: error: cannot find type 'URLRequest' in scope
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
28 | func download(
29 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/MockNetworkTransport.swift:149:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
147 | case .success(let status, let headers, let body):
148 | let url = request.url ?? URL(string: "https://mock.invalid")!
149 | let response = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
150 | url: url,
151 | statusCode: status,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | var response: Response?
28 | var error: (any Error)?
29 | var lastRequest: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
30 | }
31 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:53:66: error: cannot find type 'URLRequest' in scope
51 |
52 | /// The most recent request that reached the stub.
53 | @_spi(SwiftNetworkKitTesting) public static var lastRequest: URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
54 | lock.lock()
55 | defer { lock.unlock() }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:68:54: error: cannot find type 'URLRequest' in scope
66 | // MARK: URLProtocol
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
| `- error: cannot find type 'URLRequest' in scope
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
70 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:77: error: cannot find type 'URLRequest' in scope
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
70 |
71 | override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:69:62: error: cannot find type 'URLRequest' in scope
67 |
68 | override public class func canInit(with request: URLRequest) -> Bool { true }
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
| `- error: cannot find type 'URLRequest' in scope
70 |
71 | override public func startLoading() {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:71:26: error: method does not override any method from its superclass
69 | override public class func canonicalRequest(for request: URLRequest) -> URLRequest { request }
70 |
71 | override public func startLoading() {
| `- error: method does not override any method from its superclass
72 | Self.lock.lock()
73 | Self.state.lastRequest = request
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:99:26: error: method does not override any method from its superclass
97 | }
98 |
99 | override public func stopLoading() {}
| `- error: method does not override any method from its superclass
100 | }
101 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:18:67: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | ///
17 | /// Not thread-safe across concurrent tests — keep suites that use it `.serialized`.
18 | @_spi(SwiftNetworkKitTesting) public final class URLProtocolStub: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | @_spi(SwiftNetworkKitTesting) public struct Response: Sendable {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:41:22: error: argument passed to call that takes no arguments
39 | lock.lock()
40 | defer { lock.unlock() }
41 | state = State(
| `- error: argument passed to call that takes no arguments
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
43 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:90: error: 'nil' requires a contextual type
40 | defer { lock.unlock() }
41 | state = State(
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
| `- error: 'nil' requires a contextual type
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:42:108: error: 'nil' requires a contextual type
40 | defer { lock.unlock() }
41 | state = State(
42 | response: Response(statusCode: status, headers: headers, body: body), error: nil, lastRequest: nil)
| `- error: 'nil' requires a contextual type
43 | }
44 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:22: error: argument passed to call that takes no arguments
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: argument passed to call that takes no arguments
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:33: error: 'nil' requires a contextual type
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: 'nil' requires a contextual type
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:49:65: error: 'nil' requires a contextual type
47 | lock.lock()
48 | defer { lock.unlock() }
49 | state = State(response: nil, error: error, lastRequest: nil)
| `- error: 'nil' requires a contextual type
50 | }
51 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:73:34: error: cannot find 'request' in scope
71 | override public func startLoading() {
72 | Self.lock.lock()
73 | Self.state.lastRequest = request
| `- error: cannot find 'request' in scope
74 | let response = Self.state.response
75 | let error = Self.state.error
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:79:13: error: cannot find 'client' in scope
77 |
78 | if let error {
79 | client?.urlProtocol(self, didFailWithError: error)
| `- error: cannot find 'client' in scope
80 | return
81 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:83:39: error: cannot find 'request' in scope
81 | }
82 |
83 | guard let response, let url = request.url else {
| `- error: cannot find 'request' in scope
84 | client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
85 | return
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:84:13: error: cannot find 'client' in scope
82 |
83 | guard let response, let url = request.url else {
84 | client?.urlProtocol(self, didFailWithError: URLError(.badServerResponse))
| `- error: cannot find 'client' in scope
85 | return
86 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:88:28: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | }
87 |
88 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
89 | url: url,
90 | statusCode: response.statusCode,
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:9: error: cannot find 'client' in scope
92 | headerFields: response.headers
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
| `- error: cannot find 'client' in scope
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:94:82: error: cannot infer contextual base in reference to member 'notAllowed'
92 | headerFields: response.headers
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
| `- error: cannot infer contextual base in reference to member 'notAllowed'
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:95:9: error: cannot find 'client' in scope
93 | )!
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
95 | client?.urlProtocol(self, didLoad: response.body)
| `- error: cannot find 'client' in scope
96 | client?.urlProtocolDidFinishLoading(self)
97 | }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Testing/URLProtocolStub.swift:96:9: error: cannot find 'client' in scope
94 | client?.urlProtocol(self, didReceive: httpResponse, cacheStoragePolicy: .notAllowed)
95 | client?.urlProtocol(self, didLoad: response.body)
96 | client?.urlProtocolDidFinishLoading(self)
| `- error: cannot find 'client' in scope
97 | }
98 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:89: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Tracing/TracingInterceptor.swift:18:34: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | var request = request
20 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 | func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:18:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 | /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Sends `body` as the request body, reporting byte progress.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:25:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | from body: UploadBody,
24 | progress: (@Sendable (ProgressEvent) -> Void)?
25 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Downloads the response to a temporary file, reporting byte progress. The caller owns the file.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:31:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | _ request: URLRequest,
30 | progress: (@Sendable (ProgressEvent) -> Void)?
31 | ) async throws -> (URL, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:37:20: error: cannot find type 'URLRequest' in scope
35 |
36 | public func upload(
37 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:40:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | from body: UploadBody,
39 | progress: (@Sendable (ProgressEvent) -> Void)?
40 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | var request = request
42 | let payload: Data
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:67:20: error: cannot find type 'URLRequest' in scope
65 |
66 | public func download(
67 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Transport/NetworkTransport.swift:69:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 | _ request: URLRequest,
68 | progress: (@Sendable (ProgressEvent) -> Void)?
69 | ) async throws -> (URL, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | let (data, response) = try await data(for: request)
71 | let url = FileManager.default.temporaryDirectory
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Upload/MultipartFormData.swift:66:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
64 | /// Streams the body to `url` part-by-part so a large file part is never fully in memory.
65 | public func writeEncoded(to url: URL) throws {
66 | FileManager.default.createFile(atPath: url.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
67 | guard let handle = try? FileHandle(forWritingTo: url) else {
68 | throw NetworkError.encoding(underlying: MultipartError.cannotOpenOutput(url))
[107/148] Compiling SwiftNetworkKit MemoryCacheStore.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[108/148] Compiling SwiftNetworkKit ResponseCache.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[109/148] Compiling SwiftNetworkKit ContinuousClockAdapter.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[110/148] Compiling SwiftNetworkKit NetworkClock.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[111/148] Compiling SwiftNetworkKit NetworkClient+Publishers.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[112/148] Compiling SwiftNetworkKit TransferState.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[113/148] Compiling SwiftNetworkKit ConnectionType.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[114/148] Compiling SwiftNetworkKit NetworkMonitor.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[115/148] Compiling SwiftNetworkKit NetworkStatus.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[116/148] Compiling SwiftNetworkKit NetworkStatusBroadcaster.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[117/148] Compiling SwiftNetworkKit PathNetworkMonitor.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[118/148] Compiling SwiftNetworkKit AuthFingerprint.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[119/148] Compiling SwiftNetworkKit AuthRequirement.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[120/148] Compiling SwiftNetworkKit JSONDecoder+NetworkKit.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[121/148] Compiling SwiftNetworkKit JSONEncoder+NetworkKit.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[122/148] Compiling SwiftNetworkKit EmptyResponse.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[123/148] Compiling SwiftNetworkKit Endpoint.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[124/148] Compiling SwiftNetworkKit EndpointDecodingFailure.swift
/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/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
70 | /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
71 | func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | }
73 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
94 | // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
95 | // swiftlint:disable force_cast
96 | public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 | if Response.self == Data.self {
98 | return data as! Response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[125/148] Compiling SwiftNetworkKit PKCE.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[126/148] Compiling SwiftNetworkKit SHA256Fallback.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[127/148] Compiling SwiftNetworkKit TokenPair+OAuth.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[128/148] Compiling SwiftNetworkKit FileOfflineStore.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[129/148] Compiling SwiftNetworkKit OfflineBehavior.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[130/148] Compiling SwiftNetworkKit OfflineReplayEvent.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[131/148] Compiling SwiftNetworkKit OfflineRequestQueue.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[132/148] Compiling SwiftNetworkKit OfflineStore.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[133/148] Compiling SwiftNetworkKit PersistedRequest.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[134/148] Compiling SwiftNetworkKit URLRequestArchive.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[135/148] Compiling SwiftNetworkKit PageLimitReached.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[136/148] Compiling SwiftNetworkKit PaginatedEndpoint.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[137/148] Compiling SwiftNetworkKit DeduplicationKey.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[138/148] Compiling SwiftNetworkKit DeduplicationTypeMismatch.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[139/148] Compiling SwiftNetworkKit RequestDeduplicator.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[140/148] Compiling SwiftNetworkKit RequestQueue.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
[141/148] Compiling SwiftNetworkKit RequestRegistry.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/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | actor OfflineRequestQueue {
11 |
12 | typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: @escaping attribute only applies to function types
31 | monitor: any NetworkMonitor,
32 | metrics: any NetworkMetrics = NoopMetrics(),
33 | send: @escaping Send
| `- error: @escaping attribute only applies to function types
34 | ) {
35 | self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/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/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 | }
21 |
22 | static func archive(_ request: URLRequest) -> Data? {
| `- error: cannot find type 'URLRequest' in scope
23 | guard let url = request.url?.absoluteString else { return nil }
24 | let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 | }
33 |
34 | static func unarchive(_ data: Data) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
35 | guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 | let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 | else { return nil }
38 |
39 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
40 | request.httpMethod = wire.method
41 | for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 | request.httpBody = wire.body
45 | request.timeoutInterval = wire.timeout
46 | if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
| `- error: cannot find 'URLRequest' in scope
47 | request.cachePolicy = policy
48 | }
/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 ?? "?"
BUILD FAILURE 6.1 wasm