Build Information
Failed to build Endpoints, reference main (dabe0a), with Swift 6.3 for Wasm on 30 Oct 2026 09:42:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/velos/Endpoints.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/velos/Endpoints
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at dabe0a5 fix: build Endpoints in release by guarding the debug-only swizzle call (#25)
Cloned https://github.com/velos/Endpoints.git
Revision (git rev-parse @):
dabe0a52591750389528591a5337d80121ba46e3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/velos/Endpoints.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/velos/Endpoints.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:eea66feda95ad8894091082dbcb77ec1fc917891d37888fd1938b0b68455d992
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/25] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - response: The HTTP response, if the server returned one.
24 | /// - Returns: `true` to refresh the credentials and retry.
25 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Returns `false`, so failed requests are never retried.
47 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | false
49 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 | /// Throws ``AuthenticationError/refreshNotSupported``.
52 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
53 | throw AuthenticationError.refreshNotSupported
54 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 | }
165 |
166 | public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | guard let statusCode = response?.statusCode else {
168 | return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 | }
172 |
173 | public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
174 | // If the tokens have rotated since the failed request was authenticated, the
175 | // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// - error: The error the data task reported, if any.
25 | /// - Returns: The response body, or the error to throw.
26 | func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | if let error = error {
28 | guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
22 | public func urlRequest(
23 | in environment: Server.Environments = Server.defaultEnvironment
24 | ) throws(EndpointError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
14 |
15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
16 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
17 |
18 | /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
24 |
25 | /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
31 |
32 | /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// `nil` when the request failed before a response arrived, such as when it couldn't
46 | /// be built, the connection failed, or the device was offline.
47 | var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | switch self {
49 | case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
62 | }
63 |
64 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
65 |
66 | /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/28] Compiling Endpoints NoAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// - error: The error the data task reported, if any.
25 | /// - Returns: The response body, or the error to throw.
26 | func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | if let error = error {
28 | guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 | // if we don't have an `error`, we must have an `HTTPURLResponse`
36 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 | return .failure(.urlLoadError(URLError(.badServerResponse)))
38 | }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | // if we don't have an `error`, we must have an `HTTPURLResponse`
36 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | return .failure(.urlLoadError(URLError(.badServerResponse)))
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 |
40 | if httpResponse.statusCode == 204 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | // handle empty response
42 | return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | // handle empty response
42 | return .success(Data())
43 | } else if (200..<300).contains(httpResponse.statusCode), let data = data {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | return .success(data)
45 | } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
22 | public func urlRequest(
23 | in environment: Server.Environments = Server.defaultEnvironment
24 | ) throws(EndpointError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
97 | }
98 |
99 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
[5/28] Compiling Endpoints Definition+URLResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// - error: The error the data task reported, if any.
25 | /// - Returns: The response body, or the error to throw.
26 | func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | if let error = error {
28 | guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 | // if we don't have an `error`, we must have an `HTTPURLResponse`
36 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 | return .failure(.urlLoadError(URLError(.badServerResponse)))
38 | }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | // if we don't have an `error`, we must have an `HTTPURLResponse`
36 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | return .failure(.urlLoadError(URLError(.badServerResponse)))
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 |
40 | if httpResponse.statusCode == 204 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | // handle empty response
42 | return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | // handle empty response
42 | return .success(Data())
43 | } else if (200..<300).contains(httpResponse.statusCode), let data = data {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | return .success(data)
45 | } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
22 | public func urlRequest(
23 | in environment: Server.Environments = Server.defaultEnvironment
24 | ) throws(EndpointError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
97 | }
98 |
99 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
[6/28] Compiling Endpoints Endpoint+URLRequest.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | request
13 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// - error: The error the data task reported, if any.
25 | /// - Returns: The response body, or the error to throw.
26 | func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | if let error = error {
28 | guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 | // if we don't have an `error`, we must have an `HTTPURLResponse`
36 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 | return .failure(.urlLoadError(URLError(.badServerResponse)))
38 | }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | // if we don't have an `error`, we must have an `HTTPURLResponse`
36 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | return .failure(.urlLoadError(URLError(.badServerResponse)))
38 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 | }
39 |
40 | if httpResponse.statusCode == 204 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | // handle empty response
42 | return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 | // handle empty response
42 | return .success(Data())
43 | } else if (200..<300).contains(httpResponse.statusCode), let data = data {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 | return .success(data)
45 | } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
22 | public func urlRequest(
23 | in environment: Server.Environments = Server.defaultEnvironment
24 | ) throws(EndpointError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
97 | }
98 |
99 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
100 | urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
[7/28] Compiling Endpoints Endpoint.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
14 |
15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
16 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
17 |
18 | /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:143:56: error: cannot find type 'URLRequest' in scope
141 |
142 | /// Loads data for the request, mapping `URLSession` failures into the endpoint's ``EndpointTaskError``.
143 | private func loadData<T: Endpoint>(for urlRequest: URLRequest, endpoint: T.Type) async throws(T.TaskError) -> (data: Data, response: URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
144 | do {
145 | return try await data(for: urlRequest)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[8/28] Compiling Endpoints Array+Form.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
14 |
15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
16 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
17 |
18 | /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:143:56: error: cannot find type 'URLRequest' in scope
141 |
142 | /// Loads data for the request, mapping `URLSession` failures into the endpoint's ``EndpointTaskError``.
143 | private func loadData<T: Endpoint>(for urlRequest: URLRequest, endpoint: T.Type) async throws(T.TaskError) -> (data: Data, response: URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
144 | do {
145 | return try await data(for: urlRequest)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[9/28] Compiling Endpoints URLSession+Async.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
14 |
15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
16 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
17 |
18 | /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:143:56: error: cannot find type 'URLRequest' in scope
141 |
142 | /// Loads data for the request, mapping `URLSession` failures into the endpoint's ``EndpointTaskError``.
143 | private func loadData<T: Endpoint>(for urlRequest: URLRequest, endpoint: T.Type) async throws(T.TaskError) -> (data: Data, response: URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
144 | do {
145 | return try await data(for: urlRequest)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[10/28] Compiling Endpoints Mocking.swift
[11/28] Compiling Endpoints URLSessionTask+Swizzling.swift
[12/28] Compiling Endpoints MultipartFormEncoder.swift
[13/28] Compiling Endpoints Method.swift
[14/28] Compiling Endpoints MockContinuation.swift
[15/28] Compiling Endpoints MockRegistry.swift
[16/28] Compiling Endpoints CookieAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:40:51: error: cannot infer contextual base in reference to member 'whitespaces'
38 | var pairs = existing
39 | .components(separatedBy: ";")
40 | .map { $0.trimmingCharacters(in: .whitespaces) }
| `- error: cannot infer contextual base in reference to member 'whitespaces'
41 | .filter { !$0.isEmpty && $0 != name && !$0.hasPrefix("\(name)=") }
42 | pairs.append(cookiePair)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 | }
165 |
166 | public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | guard let statusCode = response?.statusCode else {
168 | return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 | }
172 |
173 | public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
174 | // If the tokens have rotated since the failed request was authenticated, the
175 | // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 | public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 | guard let statusCode = response?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 | return false
169 | }
[17/28] Compiling Endpoints HeaderKeyAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:40:51: error: cannot infer contextual base in reference to member 'whitespaces'
38 | var pairs = existing
39 | .components(separatedBy: ";")
40 | .map { $0.trimmingCharacters(in: .whitespaces) }
| `- error: cannot infer contextual base in reference to member 'whitespaces'
41 | .filter { !$0.isEmpty && $0 != name && !$0.hasPrefix("\(name)=") }
42 | pairs.append(cookiePair)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 | }
165 |
166 | public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | guard let statusCode = response?.statusCode else {
168 | return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 | }
172 |
173 | public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
174 | // If the tokens have rotated since the failed request was authenticated, the
175 | // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 | public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 | guard let statusCode = response?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 | return false
169 | }
[18/28] Compiling Endpoints JWTAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 | }
30 |
31 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
32 | var mutableRequest = request
33 | let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:40:51: error: cannot infer contextual base in reference to member 'whitespaces'
38 | var pairs = existing
39 | .components(separatedBy: ";")
40 | .map { $0.trimmingCharacters(in: .whitespaces) }
| `- error: cannot infer contextual base in reference to member 'whitespaces'
41 | .filter { !$0.isEmpty && $0 != name && !$0.hasPrefix("\(name)=") }
42 | pairs.append(cookiePair)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 | }
37 |
38 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
39 | var mutableRequest = request
40 | mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 | // MARK: - AuthenticationMethod
138 |
139 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
140 | // A request made from inside this instance's own refreshHandler would wait on
141 | // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 | }
165 |
166 | public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 | guard let statusCode = response?.statusCode else {
168 | return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 | }
172 |
173 | public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
174 | // If the tokens have rotated since the failed request was authenticated, the
175 | // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 | public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 | guard let statusCode = response?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 | return false
169 | }
[19/28] Compiling Endpoints URLSession+Combine.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
24 |
25 | /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
31 |
32 | /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// `nil` when the request failed before a response arrived, such as when it couldn't
46 | /// be built, the connection failed, or the device was offline.
47 | var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | switch self {
49 | case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
62 | }
63 |
64 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
65 |
66 | /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 | for endpoint: T,
206 | in environment: T.Server.Environments = T.Server.defaultEnvironment
207 | ) throws(T.TaskError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
208 | do {
209 | return try endpoint.urlRequest(in: environment)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[20/28] Compiling Endpoints URLSession+Endpoints.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
24 |
25 | /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
31 |
32 | /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// `nil` when the request failed before a response arrived, such as when it couldn't
46 | /// be built, the connection failed, or the device was offline.
47 | var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | switch self {
49 | case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
62 | }
63 |
64 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
65 |
66 | /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 | for endpoint: T,
206 | in environment: T.Server.Environments = T.Server.defaultEnvironment
207 | ) throws(T.TaskError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
208 | do {
209 | return try endpoint.urlRequest(in: environment)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[21/28] Compiling Endpoints Header.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
21 |
22 | /// The response had no body, and its status code wasn't 204.
23 | case unexpectedResponse(httpResponse: HTTPURLResponse)
| `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
24 |
25 | /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
25 | /// The server returned an error status code, and its body was decoded as the
26 | /// endpoint's ``Endpoint/ErrorResponse``.
27 | case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
| `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
28 | /// The server returned an error status code, and its body couldn't be decoded as
29 | /// the endpoint's ``Endpoint/ErrorResponse``.
30 | case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
| `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' contains non-Sendable type 'AnyObject'
31 |
32 | /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | /// `nil` when the request failed before a response arrived, such as when it couldn't
46 | /// be built, the connection failed, or the device was offline.
47 | var httpResponse: HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | switch self {
49 | case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
62 | }
63 |
64 | public extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
65 |
66 | /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 | for endpoint: T,
206 | in environment: T.Server.Environments = T.Server.defaultEnvironment
207 | ) throws(T.TaskError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
208 | do {
209 | return try endpoint.urlRequest(in: environment)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[22/28] Compiling Endpoints AuthenticationError.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - response: The HTTP response, if the server returned one.
24 | /// - Returns: `true` to refresh the credentials and retry.
25 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Returns `false`, so failed requests are never retried.
47 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | false
49 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 | /// Throws ``AuthenticationError/refreshNotSupported``.
52 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
53 | throw AuthenticationError.refreshNotSupported
54 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[23/28] Compiling Endpoints AuthenticationMethod.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - response: The HTTP response, if the server returned one.
24 | /// - Returns: `true` to refresh the credentials and retry.
25 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Returns `false`, so failed requests are never retried.
47 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | false
49 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 | /// Throws ``AuthenticationError/refreshNotSupported``.
52 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
53 | throw AuthenticationError.refreshNotSupported
54 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[24/28] Compiling Endpoints AuthenticationStability.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - response: The HTTP response, if the server returned one.
24 | /// - Returns: `true` to refresh the credentials and retry.
25 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Returns `false`, so failed requests are never retried.
47 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | false
49 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 | /// Throws ``AuthenticationError/refreshNotSupported``.
52 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
53 | throw AuthenticationError.refreshNotSupported
54 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[25/28] Compiling Endpoints BasicAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 | /// - Returns: The authenticated request.
15 | /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 | func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
17 |
18 | /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - response: The HTTP response, if the server returned one.
24 | /// - Returns: `true` to refresh the credentials and retry.
25 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 | /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 | /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
| `- error: cannot find type 'URLRequest' in scope
36 |
37 | /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Returns `false`, so failed requests are never retried.
47 | func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | false
49 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has 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/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 | /// Throws ``AuthenticationError/refreshNotSupported``.
52 | func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
| `- error: cannot find type 'URLRequest' in scope
53 | throw AuthenticationError.refreshNotSupported
54 | }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 | }
26 |
27 | public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
28 | var mutableRequest = request
29 | mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[26/28] Compiling Endpoints ParameterRepresentable.swift
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:152:33: error: cannot infer type of closure parameter '$0' without a type annotation
150 | public init() {
151 | self.baseUrls = [:]
152 | self.requestProcessor = { @Sendable in $0 }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
153 | }
154 |
[27/28] Compiling Endpoints PathTemplate.swift
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:152:33: error: cannot infer type of closure parameter '$0' without a type annotation
150 | public init() {
151 | self.baseUrls = [:]
152 | self.requestProcessor = { @Sendable in $0 }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
153 | }
154 |
[28/28] Compiling Endpoints Server.swift
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
69 | /// Use it for static changes, such as adding a build-number header. Use ``auth``
70 | /// for credentials.
71 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
91 | public extension ServerDefinition {
92 | /// Returns the request unchanged.
93 | var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
| `- error: cannot find type 'URLRequest' in scope
94 | }
95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 | public let baseUrls: [Environments: URL]
107 | public let requestProcessor: @Sendable (URLRequest) -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
108 |
109 | /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 | staging: URL? = nil,
120 | production: URL? = nil,
121 | requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
| `- error: cannot find type 'URLRequest' in scope
122 | ) {
123 | var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 | /// - baseUrl: The base URL.
135 | /// - requestProcessor: Changes each request after it is built.
136 | public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
| `- error: cannot find type 'URLRequest' in scope
137 | self.baseUrls = [
138 | .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:152:33: error: cannot infer type of closure parameter '$0' without a type annotation
150 | public init() {
151 | self.baseUrls = [:]
152 | self.requestProcessor = { @Sendable in $0 }
| `- error: cannot infer type of closure parameter '$0' without a type annotation
153 | }
154 |
BUILD FAILURE 6.3 wasm