Build Information
Failed to build RealHTTP, reference main (8f1ea5), with Swift 6.3 for Android on 15 Apr 2026 15:26:25 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[60/81] Compiling RealHTTP HTTPStubCustomMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[61/81] Compiling RealHTTP HTTPStubJSONMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[62/81] Compiling RealHTTP HTTPStubRegExMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:194:11: error: cannot find type 'URLSessionTaskMetrics' in scope
192 | // MARK: - URLSessionTaskMetrics.ResourceFetchType Extension
193 |
194 | extension URLSessionTaskMetrics.ResourceFetchType {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
195 |
196 | var name: String {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:43: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift:69:82: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
67 | var buffer: [String] = []
68 |
69 | let taskIdentifier = (stats.task?.taskIdentifier != nil ? "\(stats.task!.taskIdentifier)" : "-")
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'taskIdentifier'
70 | buffer.append("Task ID: \(taskIdentifier) lifetime: \(stats.elapsedInterval.milliseconds) redirects: \(stats.countRedirects)")
71 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:63:54: error: cannot find type 'URLRequest' in scope
61 | public struct cURLHelper {
62 |
63 | fileprivate static func cURLDescription(request: URLRequest?, client: HTTPClient?) -> String {
| `- error: cannot find type 'URLRequest' in scope
64 | guard let client = client,
65 | let request = request,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:92:53: error: cannot find type 'URLRequest' in scope
90 | /// - client: where the request is running in.
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
94 | let url = request.url,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:119:52: error: cannot find type 'URLRequest' in scope
117 | /// - client: where the request is running in.
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
120 | let configuration = client.session.configuration
121 | guard configuration.httpShouldSetCookies,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:142:49: error: cannot find type 'URLRequest' in scope
140 | /// - client: where the request is running in.
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
143 | let configuration = client.session.configuration
144 | var headers = HTTPHeaders()
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:166:46: error: cannot find type 'URLRequest' in scope
164 | /// - client: where the request is running in.
165 | /// - components: components array.
166 | private static func addBody(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
| `- error: cannot find type 'URLRequest' in scope
167 | if let httpBodyData = request.httpBody {
168 | let httpBody = String(decoding: httpBodyData, as: UTF8.self)
/host/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:451:76: error: cannot find type 'URLRequest' in scope
449 | /// - Parameter client: client instance.
450 | /// - Returns: `URLRequest`
451 | internal func urlRequest(inClient client: HTTPClient?) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
452 | guard let client = client,
453 | let fullURL = urlComponents.fullURLInClient(client) else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:52:67: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
50 | /// - Returns: String
51 | public func cURLDescription() -> String {
52 | cURLHelper.cURLDescription(request: request?.sessionTask?.originalRequest, client: request?.client)
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
53 | }
54 |
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:93:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
91 | /// - components: components array.
92 | private static func addCredentials(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
93 | guard let credentialStorage = client.session.configuration.urlCredentialStorage,
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
94 | let url = request.url,
95 | let host = url.host else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:103:72: error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
101 | protocol: url.scheme,
102 | realm: host,
103 | authenticationMethod: NSURLAuthenticationMethodHTTPBasic)
| `- error: cannot find 'NSURLAuthenticationMethodHTTPBasic' in scope
104 |
105 | if let credentials = credentialStorage.credentials(for: protectionSpace)?.values {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:99:31: error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
97 | }
98 |
99 | let protectionSpace = URLProtectionSpace(host: host,
| `- error: 'URLProtectionSpace' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | port: url.port ?? 0,
101 | protocol: url.scheme,
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:120:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
118 | /// - components: components array.
119 | private static func addSetCookies(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
120 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
121 | guard configuration.httpShouldSetCookies,
122 | let url = request.url else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/cURLHelper.swift:143:44: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
141 | /// - components: components array.
142 | private static func addHeaders(for request: URLRequest, whenIn client: HTTPClient, into components: inout [String]) {
143 | let configuration = client.session.configuration
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
144 | var headers = HTTPHeaders()
145 |
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:83:41: error: cannot find type 'URLRequest' in scope
81 | // MARK: - Internal Functions
82 |
83 | internal func matches(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
84 | for matcher in matchers {
85 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift:41:34: error: cannot find type 'URLRequest' in scope
39 | // MARK: - Conformance
40 |
41 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
42 | guard let data = request.body else {
43 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:39:34: error: cannot find type 'URLRequest' in scope
37 | // MARK: - Protocol
38 |
39 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
40 | callback(request, source)
41 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift:56:34: error: cannot find type 'URLRequest' in scope
54 | // MARK: - Conformance
55 |
56 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
57 | guard let data = request.body,
58 | let decodedObject = try? self.decoder.decode(T.self, from: data) else {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift:50:34: error: cannot find type 'URLRequest' in scope
48 | // MARK: - Conformances
49 |
50 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | switch location {
52 | case .url:
[63/81] Compiling RealHTTP HTTPProgress.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[64/81] Compiling RealHTTP HTTPRequestPriority.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[65/81] Compiling RealHTTP HTTPScheme.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[66/81] Compiling RealHTTP HTTPStatusCode.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[67/81] Compiling RealHTTP HTTPVersion.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[68/81] Compiling RealHTTP HTTPHeaderElement+Name.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[69/81] Compiling RealHTTP HTTPHeaders+Element.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[70/81] Compiling RealHTTP HTTPHeaders.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[71/81] Compiling RealHTTP MIMEType.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[72/81] Compiling RealHTTP HTTPMetrics.swift
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPProgress.swift:86:30: error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
84 | self.partialData = partialData
85 |
86 | if expectedLength != NSURLSessionTransferSizeUnknown, expectedLength != 0 {
| `- error: cannot find 'NSURLSessionTransferSizeUnknown' in scope
87 | self.percentage = Double(currentLength)/Double(expectedLength)
88 | } else {
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:228:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | ///
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
230 | return .none
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/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:284:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
282 | // MARK: HTTPURLResponse + Extension
283 |
284 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
285 |
286 | /// Status of the response as `HTTPStatusCode` object
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:45: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:229:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
227 | /// - Parameter urlResponse: url response instance
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
230 | return .none
231 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:301:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
299 | // MARK: HTTPHeaders (HTTPURLResponse Extension)
300 |
301 | extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
302 |
303 | /// Returns `allHeaderFields` as `HTTPHeaders`.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:312:1: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
310 | // MARK: HTTPHeaders (URLSessionConfiguration Extension)
311 |
312 | extension URLSessionConfiguration {
| `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
313 |
314 | /// `httpAdditionalHeaders` as `HTTPHeaders` object.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:44:29: error: cannot find type 'URLSessionTaskMetrics' in scope
42 |
43 | /// Task metrics.
44 | public let taskMetrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
45 |
46 | /// Associated task.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:47:40: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 | /// Associated task.
47 | public private(set) weak var task: URLSessionTask?
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | /// Number of redirects made.
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:29: error: cannot find type 'URLSessionTaskMetrics' in scope
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
58 | self.taskMetrics = metrics
59 | self.task = task
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:57:59: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 |
56 | /// Initialize the object with the metrics gathered for a task.
57 | internal init?(metrics: URLSessionTaskMetrics?, task: URLSessionTask?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | self.taskMetrics = metrics
59 | self.task = task
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:97:40: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
95 |
96 | /// Underlying transaction metrics.
97 | public let transactionMetrics: URLSessionTaskTransactionMetrics
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
98 |
99 | /// The transaction request.
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:100:29: error: cannot find type 'URLRequest' in scope
98 |
99 | /// The transaction request.
100 | public var request: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
101 | transactionMetrics.request
102 | }
/host/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Metrics/HTTPMetrics.swift:109:33: error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
107 | ///
108 | /// - Parameter metrics: metrics instance
109 | internal init?(metrics: URLSessionTaskTransactionMetrics?) {
| `- error: cannot find type 'URLSessionTaskTransactionMetrics' in scope
110 | guard let metrics = metrics else {
111 | return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[73/81] Compiling RealHTTP HTTPStubURITemplateMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[74/81] Compiling RealHTTP HTTPStubURLMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[75/81] Compiling RealHTTP HTTPStubMatcher.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[76/81] Compiling RealHTTP HTTPDynamicStubResponse.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[77/81] Compiling RealHTTP HTTPStubRequest+Matchers.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[78/81] Compiling RealHTTP HTTPStubRequest+Stub.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[79/81] Compiling RealHTTP HTTPStubRequest.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[80/81] Compiling RealHTTP HTTPEchoResponse.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
[81/81] Compiling RealHTTP HTTPStubResponse.swift
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift:52:34: error: cannot find type 'URLRequest' in scope
50 | // MARK: - Conformance
51 |
52 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
53 | if let URLString = request.url?.absoluteString {
54 | if template.extract(URLString) != nil {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift:43:27: error: cannot find type 'URLRequest' in scope
41 | /// - request: request instance received.
42 | /// - source: source of data.
43 | func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:46:34: error: cannot find type 'URLRequest' in scope
44 | // MARK: - Conformance
45 |
46 | public func matches(request: URLRequest, for source: HTTPMatcherSource) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
47 | guard var targetURL = request.url else {
48 | return false
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:24:47: error: cannot find type 'URLRequest' in scope
22 | /// received from the matcher.
23 | public struct HTTPDynamicStubResponse: HTTPStubResponseProvider {
24 | public typealias DataCallbackProvider = ((URLRequest, HTTPStubRequest) -> HTTPStubResponse)
| `- error: cannot find type 'URLRequest' in scope
25 |
26 | // MARK: - Public Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:36:29: error: '@escaping' only applies to function types
34 | ///
35 | /// - Parameter callback: callback provider.
36 | public init(_ callback: @escaping DataCallbackProvider) {
| `- error: '@escaping' only applies to function types
37 | self.callback = callback
38 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift:42:52: error: cannot find type 'URLRequest' in scope
40 | // MARK: - Protocol Conformance
41 |
42 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
43 | callback(urlRequest, stubRequest)
44 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:74:45: error: cannot find type 'URLRequest' in scope
72 | /// - stubRequest: stub request matched.
73 | /// - Returns: HTTPStubResponse
74 | func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse?
| `- error: cannot find type 'URLRequest' in scope
75 |
76 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:50:37: error: cannot find type 'URLRequest' in scope
48 | /// - Parameter urlRequest: url request.
49 | /// - Returns: Bool
50 | public func match(_ urlRequest: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
51 | for matcher in matchers {
52 | if matcher.matches(request: urlRequest, for: self) == false {
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:22:33: error: cannot find type 'URLRequest' in scope
20 |
21 | public struct HTTPStubCustomMatcher: HTTPStubMatcher {
22 | public typealias Handler = (URLRequest, HTTPMatcherSource) -> Bool
| `- error: cannot find type 'URLRequest' in scope
23 |
24 | // MARK: - Private Properties
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift:36:42: error: '@escaping' only applies to function types
34 | /// - Parameter matcherFunction: matcher function.
35 | /// - Returns: Self
36 | public func match(_ matcherFunction: @escaping HTTPStubCustomMatcher.Handler) -> Self {
| `- error: '@escaping' only applies to function types
37 | let matcher = HTTPStubCustomMatcher(matcherFunction)
38 | return match(matcher)
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift:33:29: error: '@escaping' only applies to function types
31 | ///
32 | /// - Parameter callback: callback to call.
33 | public init(_ callback: @escaping Handler) {
| `- error: '@escaping' only applies to function types
34 | self.callback = callback
35 | }
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift:31:73: error: '@escaping' only applies to function types
29 | /// - provider: data provider callback.
30 | /// - Returns: Self
31 | public func stub(for method: HTTPMethod, responseProvider provider: @escaping HTTPDynamicStubResponse.DataCallbackProvider) -> Self {
| `- error: '@escaping' only applies to function types
32 | responses[method] = HTTPDynamicStubResponse(provider)
33 | return self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Request/HTTPStubRequest.swift:82:52: error: cannot find type 'URLRequest' in scope
80 | extension HTTPStubResponse: HTTPStubResponseProvider {
81 |
82 | public func response(forURLRequest urlRequest: URLRequest, matchedStub stubRequest: HTTPStubRequest) -> HTTPStubResponse? {
| `- error: cannot find type 'URLRequest' in scope
83 | // it returns the object itself.
84 | self
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift:24:53: error: cannot find type 'URLRequest' in scope
22 | public class HTTPEchoResponse: HTTPStubResponse {
23 |
24 | public override func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
25 | let response = HTTPStubResponse()
26 | response.body = request.body
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:47:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
45 | /// Allow response caching. Usually you dont want to have a cached response
46 | /// so the default behaviour is set to `notAllowed`.
47 | open var cachePolicy: URLCache.StoragePolicy = .notAllowed
| `- error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
48 |
49 | /// You can define a delay to return the reponse.
/host/spi-builder-workspace/Sources/RealHTTP/Stubber/DataTypes/Stub Response/HTTPStubResponse.swift:69:42: error: cannot find type 'URLRequest' in scope
67 | /// - Parameter request: request.
68 | /// - Returns: `HTTPStubResponse`
69 | open func adaptForRequest(_ request: URLRequest) -> HTTPStubResponse {
| `- error: cannot find type 'URLRequest' in scope
70 | self
71 | }
BUILD FAILURE 6.3 android