Build Information
Successful build of RealHTTP, reference main (8f1ea5
), with Swift 6.0 for macOS (SPM) on 15 Jan 2025 15:42:18 UTC.
Swift 6 data race errors: 38
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
33 |
34 | /// Category of the error.
35 | public internal(set) var category: ErrorCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
:
108 | /// - `validatorFailure`: failure returned by a validator set.
109 | /// - `internal`: internal library error occurred.
110 | enum ErrorCategory: Int {
| `- note: consider making enum 'ErrorCategory' conform to the 'Sendable' protocol
111 | case invalidURL
112 | case multipartInvalidFile
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:38:16: warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
38 | public var userInfo: [String: Any]?
| `- warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
39 |
40 | /// Custom error message.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:42:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | // MARK: - Static Values
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:46:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
44 | // MARK: - Static Values
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:47:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:48:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:49:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:50:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:51:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:52:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:53:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
55 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:54:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[77/81] Compiling RealHTTP URLRequest+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:17: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:34: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:41: warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:50: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:86:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
84 | func removeAll() {
85 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
86 | self?.dictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:35:30: warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
33 |
34 | /// Category of the error.
35 | public internal(set) var category: ErrorCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
:
108 | /// - `validatorFailure`: failure returned by a validator set.
109 | /// - `internal`: internal library error occurred.
110 | enum ErrorCategory: Int {
| `- note: consider making enum 'ErrorCategory' conform to the 'Sendable' protocol
111 | case invalidURL
112 | case multipartInvalidFile
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:38:16: warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
38 | public var userInfo: [String: Any]?
| `- warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
39 |
40 | /// Custom error message.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:42:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | // MARK: - Static Values
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:46:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
44 | // MARK: - Static Values
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:47:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:48:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:49:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:50:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:51:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:52:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:53:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
55 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:54:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[78/81] Compiling RealHTTP HTTPCacheControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:17: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:34: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:41: warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:50: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:86:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
84 | func removeAll() {
85 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
86 | self?.dictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:35:30: warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
33 |
34 | /// Category of the error.
35 | public internal(set) var category: ErrorCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
:
108 | /// - `validatorFailure`: failure returned by a validator set.
109 | /// - `internal`: internal library error occurred.
110 | enum ErrorCategory: Int {
| `- note: consider making enum 'ErrorCategory' conform to the 'Sendable' protocol
111 | case invalidURL
112 | case multipartInvalidFile
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:38:16: warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
38 | public var userInfo: [String: Any]?
| `- warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
39 |
40 | /// Custom error message.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:42:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | // MARK: - Static Values
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:46:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
44 | // MARK: - Static Values
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:47:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:48:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:49:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:50:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:51:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:52:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:53:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
55 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:54:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[79/81] Compiling RealHTTP HTTPContentType.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:17: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:34: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:41: warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:50: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:86:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
84 | func removeAll() {
85 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
86 | self?.dictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:35:30: warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
33 |
34 | /// Category of the error.
35 | public internal(set) var category: ErrorCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
:
108 | /// - `validatorFailure`: failure returned by a validator set.
109 | /// - `internal`: internal library error occurred.
110 | enum ErrorCategory: Int {
| `- note: consider making enum 'ErrorCategory' conform to the 'Sendable' protocol
111 | case invalidURL
112 | case multipartInvalidFile
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:38:16: warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
38 | public var userInfo: [String: Any]?
| `- warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
39 |
40 | /// Custom error message.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:42:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | // MARK: - Static Values
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:46:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
44 | // MARK: - Static Values
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:47:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:48:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:49:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:50:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:51:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:52:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:53:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
55 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:54:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[80/81] Compiling RealHTTP HTTPError.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:17: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:34: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:41: warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:50: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:86:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
84 | func removeAll() {
85 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
86 | self?.dictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:35:30: warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
33 |
34 | /// Category of the error.
35 | public internal(set) var category: ErrorCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
:
108 | /// - `validatorFailure`: failure returned by a validator set.
109 | /// - `internal`: internal library error occurred.
110 | enum ErrorCategory: Int {
| `- note: consider making enum 'ErrorCategory' conform to the 'Sendable' protocol
111 | case invalidURL
112 | case multipartInvalidFile
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:38:16: warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
38 | public var userInfo: [String: Any]?
| `- warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
39 |
40 | /// Custom error message.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:42:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | // MARK: - Static Values
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:46:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
44 | // MARK: - Static Values
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:47:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:48:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:49:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:50:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:51:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:52:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:53:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
55 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:54:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[81/81] Compiling RealHTTP HTTPMethod.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:17: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:34: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:67:41: warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
65 | set(newValue) {
66 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
67 | self?.dictionary[key] = newValue
| `- warning: capture of 'newValue' with non-sendable type 'T?' in a `@Sendable` closure
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:80:50: warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: consider making generic parameter 'V' conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
78 | func removeValue(forKey key: V) {
79 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
80 | self?.dictionary.removeValue(forKey: key)
| `- warning: capture of 'key' with non-sendable type 'V' in a `@Sendable` closure
81 | }
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift:86:13: warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
21 | /// Thread safe dictionary object for get and set. Concurrent reads are allowed,
22 | /// while exclusive write was implemented via barrier of Grand Central Dispatch.
23 | internal class ThreadSafeDictionary<V: Hashable, T>: Collection {
| `- note: generic class 'ThreadSafeDictionary' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Private Properties
:
84 | func removeAll() {
85 | self.concurrentQueue.async(flags: .barrier) {[weak self] in
86 | self?.dictionary.removeAll()
| `- warning: capture of 'self' with non-sendable type 'ThreadSafeDictionary<V, T>?' in a `@Sendable` closure
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:35:30: warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
33 |
34 | /// Category of the error.
35 | public internal(set) var category: ErrorCategory
| `- warning: stored property 'category' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type 'HTTPError.ErrorCategory'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
:
108 | /// - `validatorFailure`: failure returned by a validator set.
109 | /// - `internal`: internal library error occurred.
110 | enum ErrorCategory: Int {
| `- note: consider making enum 'ErrorCategory' conform to the 'Sendable' protocol
111 | case invalidURL
112 | case multipartInvalidFile
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPError.swift:38:16: warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
36 |
37 | /// Additional user info.
38 | public var userInfo: [String: Any]?
| `- warning: stored property 'userInfo' of 'Sendable'-conforming struct 'HTTPError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
39 |
40 | /// Custom error message.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:42:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | // MARK: - Static Values
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:46:23: warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
44 | // MARK: - Static Values
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
| |- warning: static property 'connect' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'connect' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:47:23: warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
45 |
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
| |- warning: static property 'delete' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'delete' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:48:23: warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
46 | public static let connect = HTTPMethod(rawValue: "CONNECT")
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
| |- warning: static property 'get' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'get' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:49:23: warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
47 | public static let delete = HTTPMethod(rawValue: "DELETE")
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
| |- warning: static property 'head' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'head' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:50:23: warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
48 | public static let get = HTTPMethod(rawValue: "GET")
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
| |- warning: static property 'options' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'options' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:51:23: warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
49 | public static let head = HTTPMethod(rawValue: "HEAD")
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
| |- warning: static property 'patch' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'patch' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:52:23: warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
50 | public static let options = HTTPMethod(rawValue: "OPTIONS")
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
| |- warning: static property 'post' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'post' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:53:23: warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
51 | public static let patch = HTTPMethod(rawValue: "PATCH")
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
| |- warning: static property 'put' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'put' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
55 |
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/HTTPMethod.swift:54:23: warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
38 | /// - `options`: The OPTIONS method is used to describe the communication options for the target resource.
39 | /// - `patch`: The PATCH method is used to apply partial modifications to a resource.
40 | public struct HTTPMethod: RawRepresentable, Equatable, Hashable, CaseIterable, CustomStringConvertible {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
41 |
42 | public static var allCases: [HTTPMethod] = [.connect, .delete, .get, .head, .options, .patch, .post, .put, .trace]
:
52 | public static let post = HTTPMethod(rawValue: "POST")
53 | public static let put = HTTPMethod(rawValue: "PUT")
54 | public static let trace = HTTPMethod(rawValue: "TRACE")
| |- warning: static property 'trace' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trace' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
Build complete! (16.18s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "RealHTTP",
"name" : "RealHTTP",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "RealHTTP",
"targets" : [
"RealHTTP"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RealHTTPTests",
"module_type" : "SwiftTarget",
"name" : "RealHTTPTests",
"path" : "Tests/RealHTTPTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/RealHTTPTests/Resources/mac_icon.jpg",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/RealHTTPTests/Resources/test_rawdata.png",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Headers+Tests.swift",
"MovieDBTest.swift",
"Requests+Tests.swift"
],
"target_dependencies" : [
"RealHTTP"
],
"type" : "test"
},
{
"c99name" : "RealHTTP",
"module_type" : "SwiftTarget",
"name" : "RealHTTP",
"path" : "Sources/RealHTTP",
"product_memberships" : [
"RealHTTP"
],
"sources" : [
"Client/HTTPClient/HTTPClient.swift",
"Client/HTTPClient/HTTPClientDelegate.swift",
"Client/HTTPRequest/HTTPRequest+Combine.swift",
"Client/HTTPRequest/HTTPRequest.swift",
"Client/HTTPResponse/HTTPResponse.swift",
"Client/Internal/HTTPBody/HTTPBody.swift",
"Client/Internal/HTTPBody/HTTPSerializableBody.swift",
"Client/Internal/HTTPBody/JSON/HTTPBody+JSON.swift",
"Client/Internal/HTTPBody/JSON/JSONEncodable.swift",
"Client/Internal/HTTPBody/JSON/JSONSerializable.swift",
"Client/Internal/HTTPBody/Multipart/HTTPBody+FormValues.swift",
"Client/Internal/HTTPBody/Multipart/HTTPBody+Multipart.swift",
"Client/Internal/HTTPBody/Multipart/Support/MultipartForm+Boundary.swift",
"Client/Internal/HTTPBody/Multipart/Support/MultipartForm+Item.swift",
"Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift",
"Client/Internal/HTTPBody/Stream/HTTPBody+Stream.swift",
"Client/Internal/HTTPBody/Stream/StreamContent.swift",
"Client/Internal/HTTPBody/URLParametersData/HTTPBody+QueryString.swift",
"Client/Internal/HTTPBody/URLParametersData/URLParametersData.swift",
"Client/Internal/HTTPDataLoader/HTTPDataLoader+Response.swift",
"Client/Internal/HTTPDataLoader/HTTPDataLoader.swift",
"Client/Internal/HTTPResponseTransform/HTTPResponseTransform.swift",
"Client/Internal/HTTPResponseValidator/HTTPAltRequestValidator.swift",
"Client/Internal/HTTPResponseValidator/HTTPAltTaskValidator.swift",
"Client/Internal/HTTPResponseValidator/HTTPDefaultValidator.swift",
"Client/Internal/HTTPResponseValidator/HTTPValidator.swift",
"Client/Internal/HTTPSecurity/HTTPSecurity.swift",
"Client/Internal/HTTPSecurity/HTTPSecurityService.swift",
"Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift",
"Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift",
"Client/Internal/HTTPSecurity/Options/CredentialSecurity.swift",
"Client/Internal/HTTPSecurity/Options/SelfSignedCertsSecurity.swift",
"Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift",
"Client/Internal/Other Structures/Foundation+Extensions/HTTPFormattable.swift",
"Client/Internal/Other Structures/Foundation+Extensions/ThreadSafeDictionary.swift",
"Client/Internal/Other Structures/Foundation+Extensions/URLRequest+Extension.swift",
"Client/Internal/Other Structures/HTTPCacheControl.swift",
"Client/Internal/Other Structures/HTTPContentType.swift",
"Client/Internal/Other Structures/HTTPError.swift",
"Client/Internal/Other Structures/HTTPMethod.swift",
"Client/Internal/Other Structures/HTTPProgress.swift",
"Client/Internal/Other Structures/HTTPRequestPriority.swift",
"Client/Internal/Other Structures/HTTPScheme.swift",
"Client/Internal/Other Structures/HTTPStatusCode.swift",
"Client/Internal/Other Structures/HTTPVersion.swift",
"Client/Internal/Other Structures/Headers/HTTPHeaderElement+Name.swift",
"Client/Internal/Other Structures/Headers/HTTPHeaders+Element.swift",
"Client/Internal/Other Structures/Headers/HTTPHeaders.swift",
"Client/Internal/Other Structures/MIMEType.swift",
"Client/Internal/Other Structures/Metrics/HTTPMetrics.swift",
"Client/Internal/Other Structures/Metrics/Renders/HTTPMetrics+Console.swift",
"Client/Internal/Other Structures/Metrics/Renders/HTTPMetricsRender.swift",
"Client/Internal/Other Structures/URITemplate.swift",
"Client/Internal/Other Structures/cURLHelper.swift",
"RealHTTP.swift",
"Stubber/DataTypes/HTTPStubIgnoreRule.swift",
"Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubBodyMatcher.swift",
"Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubCustomMatcher.swift",
"Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubJSONMatcher.swift",
"Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubRegExMatcher.swift",
"Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURITemplateMatcher.swift",
"Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift",
"Stubber/DataTypes/Stub Matchers/HTTPStubMatcher.swift",
"Stubber/DataTypes/Stub Request/HTTPDynamicStubResponse.swift",
"Stubber/DataTypes/Stub Request/HTTPStubRequest+Matchers.swift",
"Stubber/DataTypes/Stub Request/HTTPStubRequest+Stub.swift",
"Stubber/DataTypes/Stub Request/HTTPStubRequest.swift",
"Stubber/DataTypes/Stub Response/HTTPEchoResponse.swift",
"Stubber/DataTypes/Stub Response/HTTPStubResponse.swift",
"Stubber/DataTypes/Support/Foundation+Stubber.swift",
"Stubber/DataTypes/Support/HTTPStub+Extension.swift",
"Stubber/DataTypes/Support/HTTPStubDataConvertible.swift",
"Stubber/HTTPStubber.swift",
"Stubber/HTTPStubberErrors.swift",
"Stubber/Hooks/HTTPStubHookProtocol.swift",
"Stubber/Hooks/HTTPStubURLProtocol.swift",
"Stubber/Hooks/URLHook.swift",
"Stubber/Hooks/URLSessionHook.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/immobiliare/realhttp/main
Repository: immobiliare/RealHTTP
Swift version used: 6.0
Target: RealHTTP
Extracting symbol information for 'RealHTTP'...
Finished extracting symbol information for 'RealHTTP'. (4.98s)
Building documentation for 'RealHTTP'...
warning: External name 'boundary' used to document parameter
--> Sources/RealHTTP/Client/Internal/HTTPBody/Multipart/Support/MultipartForm.swift:63:25-63:33
61 | /// Initialize a new multipart form.
62 | ///
63 + /// - Parameter boundary: boundary identifier, if `nil` it will generated automatically
| ╰─suggestion: Replace 'boundary' with 'id'
64 | public init(boundary id: String? = nil) {
65 | self.boundary = .init(id)
warning: Parameter 'destination' not found in initializer declaration
--> Sources/RealHTTP/Client/Internal/HTTPBody/URLParametersData/URLParametersData.swift:40:15-40:62
38 | ///
39 | /// - Parameters:
40 + /// - destination: destination of the url produced.
| ╰─suggestion: Remove 'destination' parameter documentation
41 | /// - parameters: parameters to encode.
42 | /// - boolEncoding: Specify how boolean values are encoded into the request.
warning: Parameter 'directory' is missing documentation
--> Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/CertificatesSecurity.swift:67:126-67:126
65 | /// Use certs from main app bundle.
66 | ///
67 + /// - Parameter usePublicKeys: is to specific if the publicKeys or certificates should be used for SSL pinning validation
| ╰─suggestion: Document 'directory' parameter
68 | public convenience init(bundledIn directory: String = ".", usePublicKeys: Bool = false) {
69 | let fileURLs = Bundle.main.paths(forResourcesOfType: "cer", inDirectory: directory).map({
warning: Parameter 'key' not found in initializer declaration
--> Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift:43:9-43:48
41 | /// Initializer for public keys.
42 | ///
43 + /// - Parameter key: public key to be used.
| ╰─suggestion: Remove 'key' parameter documentation
44 | public init(publicKey: SecKey) {
45 | self.publicKey = publicKey
warning: Parameter 'publicKey' is missing documentation
--> Sources/RealHTTP/Client/Internal/HTTPSecurity/Options/CertificatesSecurity/SSLCertificate.swift:43:48-43:48
41 | /// Initializer for public keys.
42 | ///
43 + /// - Parameter key: public key to be used.
| ╰─suggestion: Document 'publicKey' parameter
44 | public init(publicKey: SecKey) {
45 | self.publicKey = publicKey
warning: Parameter 'urlResponse' not found in type method declaration
--> Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:227:21-227:32
225 | /// If no valid code can be extracted the `.none` is set.
226 | ///
227 + /// - Parameter urlResponse: url response instance
| ╰─suggestion: Replace 'urlResponse' with 'URLResponse'
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
warning: Parameter 'URLResponse' is missing documentation
--> Sources/RealHTTP/Client/Internal/Other Structures/HTTPStatusCode.swift:227:55-227:55
225 | /// If no valid code can be extracted the `.none` is set.
226 | ///
227 + /// - Parameter urlResponse: url response instance
| ╰─suggestion: Document 'URLResponse' parameter
228 | public static func fromResponse(_ URLResponse: URLResponse?) -> HTTPStatusCode {
229 | guard let statusCode = (URLResponse as? HTTPURLResponse)?.statusCode else {
warning: Parameter 'headersDictionary' not found in initializer declaration
--> Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:79:21-79:38
77 | /// NOTE: It's case insentive so duplicate names are collapsed into the last name
78 | /// and value encountered.
79 + /// - Parameter headersDictionary: headers dictionary.
| ╰─suggestion: Replace 'headersDictionary' with 'rawDictionary'
80 | public init(rawDictionary: [String: String]?) {
81 | rawDictionary?.forEach {
warning: Parameter 'rawDictionary' is missing documentation
--> Sources/RealHTTP/Client/Internal/Other Structures/Headers/HTTPHeaders.swift:79:59-79:59
77 | /// NOTE: It's case insentive so duplicate names are collapsed into the last name
78 | /// and value encountered.
79 + /// - Parameter headersDictionary: headers dictionary.
| ╰─suggestion: Document 'rawDictionary' parameter
80 | public init(rawDictionary: [String: String]?) {
81 | rawDictionary?.forEach {
warning: Parameter 'URL' not found in instance method declaration
--> Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:56:11-56:29
54 | ///
55 | /// - Parameters:
56 + /// - URL: URL target.
| ╰─suggestion: Remove 'URL' parameter documentation
57 | /// - options: comparison options for URL matcher.
58 | /// - Returns: Self
warning: Parameter 'url' is missing documentation
--> Sources/RealHTTP/Stubber/DataTypes/HTTPStubIgnoreRule.swift:57:57-57:57
55 | /// - Parameters:
56 | /// - URL: URL target.
57 + /// - options: comparison options for URL matcher.
| ╰─suggestion: Document 'url' parameter
58 | /// - Returns: Self
59 | public func match(url: URL, options: HTTPStubURLMatcher.Options = .default) -> Self {
warning: External name 'URL' used to document parameter
--> Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:37:13-37:16
35 | ///
36 | /// - Parameters:
37 + /// - URL: URL to match. If not valid initialization fails.
| ╰─suggestion: Replace 'URL' with 'url'
38 | /// - ignoreQuery: `true` to params should be ignored by the matcher.
39 | public init?(URL url: URL, options: Options) {
warning: Parameter 'ignoreQuery' not found in initializer declaration
--> Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:38:11-38:76
36 | /// - Parameters:
37 | /// - URL: URL to match. If not valid initialization fails.
38 + /// - ignoreQuery: `true` to params should be ignored by the matcher.
| ╰─suggestion: Remove 'ignoreQuery' parameter documentation
39 | public init?(URL url: URL, options: Options) {
40 | self.URL = url
warning: Parameter 'options' is missing documentation
--> Sources/RealHTTP/Stubber/DataTypes/Stub Matchers/Built-In Matchers/HTTPStubURLMatcher.swift:38:76-38:76
36 | /// - Parameters:
37 | /// - URL: URL to match. If not valid initialization fails.
38 + /// - ignoreQuery: `true` to params should be ignored by the matcher.
| ╰─suggestion: Document 'options' parameter
39 | public init?(URL url: URL, options: Options) {
40 | self.URL = urlFinished building documentation for 'RealHTTP' (0.92s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/immobiliare/realhttp/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2048] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.28s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.57s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3261] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.27s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.58s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-5BDAB9E9C0126B9D.txt
[6/53] Compiling Snippets SnippetParser.swift
[7/53] Compiling SymbolKit GenericConstraint.swift
[8/53] Compiling SymbolKit GenericParameter.swift
[9/53] Compiling SymbolKit Generics.swift
[10/53] Compiling SymbolKit Namespace.swift
[11/57] Emitting module Snippets
[12/57] Compiling Snippets Snippet.swift
[13/57] Emitting module SymbolKit
[14/57] Compiling SymbolKit Mixin+Equals.swift
[15/57] Compiling SymbolKit Mixin+Hash.swift
[16/57] Compiling SymbolKit Mixin.swift
[17/57] Compiling SymbolKit LineList.swift
[18/57] Compiling SymbolKit Position.swift
[19/57] Compiling SymbolKit SemanticVersion.swift
[20/57] Compiling SymbolKit AccessControl.swift
[21/57] Compiling SymbolKit Availability.swift
[22/57] Compiling SymbolKit AvailabilityItem.swift
[23/57] Compiling SymbolKit Domain.swift
[24/57] Compiling SymbolKit SourceRange.swift
[25/57] Compiling SymbolKit Metadata.swift
[26/57] Compiling SymbolKit Module.swift
[27/57] Compiling SymbolKit OperatingSystem.swift
[28/57] Compiling SymbolKit Platform.swift
[29/57] Compiling SymbolKit Relationship.swift
[30/57] Compiling SymbolKit RelationshipKind.swift
[31/57] Compiling SymbolKit SourceOrigin.swift
[32/57] Compiling SymbolKit GenericConstraints.swift
[33/57] Compiling SymbolKit Swift.swift
[34/57] Compiling SymbolKit Identifier.swift
[35/57] Compiling SymbolKit KindIdentifier.swift
[36/57] Compiling SymbolKit Location.swift
[37/57] Compiling SymbolKit Mutability.swift
[38/57] Compiling SymbolKit DeclarationFragments.swift
[39/57] Compiling SymbolKit Fragment.swift
[40/57] Compiling SymbolKit FragmentKind.swift
[41/57] Compiling SymbolKit FunctionParameter.swift
[42/57] Compiling SymbolKit FunctionSignature.swift
[43/57] Compiling SymbolKit Names.swift
[44/57] Compiling SymbolKit SPI.swift
[45/57] Compiling SymbolKit Snippet.swift
[46/57] Compiling SymbolKit Extension.swift
[47/57] Compiling SymbolKit Symbol.swift
[48/57] Compiling SymbolKit SymbolKind.swift
[49/57] Compiling SymbolKit SymbolGraph.swift
[50/57] Compiling SymbolKit GraphCollector.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[56/61] Compiling snippet_extract URL+Status.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (5.09s)
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/73] Emitting module RealHTTP
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[3/80] Compiling RealHTTP HTTPStubBodyMatcher.swift
[4/80] Compiling RealHTTP HTTPStubCustomMatcher.swift
[5/80] Compiling RealHTTP HTTPStubJSONMatcher.swift
[6/80] Compiling RealHTTP HTTPStubRegExMatcher.swift
[7/80] Compiling RealHTTP HTTPStubURITemplateMatcher.swift
[8/80] Compiling RealHTTP HTTPStubURLMatcher.swift
[9/80] Compiling RealHTTP HTTPStubMatcher.swift
[10/80] Compiling RealHTTP HTTPDynamicStubResponse.swift
[11/80] Compiling RealHTTP HTTPStubRequest+Matchers.swift
[12/80] Compiling RealHTTP HTTPStubRequest+Stub.swift
[13/80] Compiling RealHTTP HTTPStubRequest.swift
[14/80] Compiling RealHTTP HTTPEchoResponse.swift
[15/80] Compiling RealHTTP HTTPStubResponse.swift
[16/80] Compiling RealHTTP Foundation+Stubber.swift
[17/80] Compiling RealHTTP HTTPStub+Extension.swift
[18/80] Compiling RealHTTP JSONEncodable.swift
[19/80] Compiling RealHTTP JSONSerializable.swift
[20/80] Compiling RealHTTP HTTPBody+FormValues.swift
[21/80] Compiling RealHTTP HTTPBody+Multipart.swift
[22/80] Compiling RealHTTP MultipartForm+Boundary.swift
[23/80] Compiling RealHTTP MultipartForm+Item.swift
[24/80] Compiling RealHTTP MultipartForm.swift
[25/80] Compiling RealHTTP HTTPBody+Stream.swift
[26/80] Compiling RealHTTP HTTPDefaultValidator.swift
[27/80] Compiling RealHTTP HTTPValidator.swift
[28/80] Compiling RealHTTP HTTPSecurity.swift
[29/80] Compiling RealHTTP HTTPSecurityService.swift
[30/80] Compiling RealHTTP CertificatesSecurity.swift
[31/80] Compiling RealHTTP SSLCertificate.swift
[32/80] Compiling RealHTTP CredentialSecurity.swift
[33/80] Compiling RealHTTP SelfSignedCertsSecurity.swift
[34/80] Compiling RealHTTP Foundation+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[35/80] Compiling RealHTTP HTTPFormattable.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[36/80] Compiling RealHTTP ThreadSafeDictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[37/80] Compiling RealHTTP URLRequest+Extension.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[38/80] Compiling RealHTTP HTTPCacheControl.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[39/80] Compiling RealHTTP HTTPContentType.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[40/80] Compiling RealHTTP HTTPError.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[41/80] Compiling RealHTTP HTTPMethod.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/Other Structures/Foundation+Extensions/Foundation+Extension.swift:238:1: warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
236 | // MARK: - URL
237 |
238 | extension URL: ExpressibleByStringLiteral {
| |- warning: extension declares a conformance of imported type 'URL' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
239 |
240 | public init(stringLiteral value: StaticString) {
[42/80] Compiling RealHTTP HTTPProgress.swift
[43/80] Compiling RealHTTP HTTPRequestPriority.swift
[44/80] Compiling RealHTTP HTTPScheme.swift
[45/80] Compiling RealHTTP HTTPStatusCode.swift
[46/80] Compiling RealHTTP HTTPVersion.swift
[47/80] Compiling RealHTTP HTTPHeaderElement+Name.swift
[48/80] Compiling RealHTTP HTTPHeaders+Element.swift
[49/80] Compiling RealHTTP HTTPHeaders.swift
[50/80] Compiling RealHTTP HTTPClient.swift
[51/80] Compiling RealHTTP HTTPClientDelegate.swift
[52/80] Compiling RealHTTP HTTPRequest+Combine.swift
[53/80] Compiling RealHTTP HTTPRequest.swift
[54/80] Compiling RealHTTP HTTPResponse.swift
[55/80] Compiling RealHTTP HTTPBody.swift
[56/80] Compiling RealHTTP HTTPSerializableBody.swift
[57/80] Compiling RealHTTP HTTPBody+JSON.swift
[58/80] Compiling RealHTTP StreamContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[59/80] Compiling RealHTTP HTTPBody+QueryString.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[60/80] Compiling RealHTTP URLParametersData.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[61/80] Compiling RealHTTP HTTPDataLoader+Response.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[62/80] Compiling RealHTTP HTTPDataLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[63/80] Compiling RealHTTP HTTPResponseTransform.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[64/80] Compiling RealHTTP HTTPAltRequestValidator.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[65/80] Compiling RealHTTP HTTPAltTaskValidator.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:157:59: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
155 | DispatchQueue.main.async { [weak self] in
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:21:14: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
19 | import Foundation
20 |
21 | public class HTTPRequest: CustomStringConvertible {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
22 | public typealias RequestTask = Task<HTTPResponse, Error>
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:158:64: warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
156 | guard let client = self?.client else { return }
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
| `- warning: capture of 'strategy' with non-sendable type 'HTTPRetryStrategy' in a `@Sendable` closure
159 | afterResponse: response)
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPResponseValidator/HTTPValidator.swift:62:13: note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
60 | /// - the amount of time before retry the original request once you got the response for the alt request.
61 | /// - an optional async callback to execute once you got the response of the alt request before retry the original request.
62 | public enum HTTPRetryStrategy {
| `- note: consider making enum 'HTTPRetryStrategy' conform to the 'Sendable' protocol
63 | public typealias AltRequestCatcher = ((_ request: HTTPRequest, _ response: HTTPResponse) async throws -> Void)
64 | public typealias RetryTask = ((_ originalRequest: HTTPRequest) async throws -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPDataLoader/HTTPDataLoader.swift:159:56: warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
157 | client.delegate?.client(client, request: (request, task),
158 | willRetryWithStrategy: strategy,
159 | afterResponse: response)
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse' in a `@Sendable` closure
160 | }
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPResponse/HTTPResponse.swift:25:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
23 | /// This is the raw response received from server. It includes all the
24 | /// data collected from the request including metrics and errors.
25 | open class HTTPResponse: CustomStringConvertible {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
26 |
27 | // MARK: - Public Properties
[66/80] Compiling RealHTTP MIMEType.swift
[67/80] Compiling RealHTTP HTTPMetrics.swift
[68/80] Compiling RealHTTP HTTPMetrics+Console.swift
[69/80] Compiling RealHTTP HTTPMetricsRender.swift
[70/80] Compiling RealHTTP URITemplate.swift
[71/80] Compiling RealHTTP cURLHelper.swift
[72/80] Compiling RealHTTP RealHTTP.swift
[73/80] Compiling RealHTTP HTTPStubIgnoreRule.swift
[74/80] Compiling RealHTTP HTTPStubDataConvertible.swift
[75/80] Compiling RealHTTP HTTPStubber.swift
[76/80] Compiling RealHTTP HTTPStubberErrors.swift
[77/80] Compiling RealHTTP HTTPStubHookProtocol.swift
[78/80] Compiling RealHTTP HTTPStubURLProtocol.swift
[79/80] Compiling RealHTTP URLHook.swift
[80/80] Compiling RealHTTP URLSessionHook.swift
Build of target: 'RealHTTP' complete! (1.92s)
2296
14 /Users/admin/builder/spi-builder-workspace/.docs/immobiliare/realhttp/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/immobiliare/realhttp/main
File count: 2296
Doc size: 14.0MB
Preparing doc bundle ...
Uploading prod-immobiliare-realhttp-main-f29f06f8.zip to s3://spi-docs-inbox/prod-immobiliare-realhttp-main-f29f06f8.zip
Copying... [11%]
Copying... [21%]
Copying... [30%]
Copying... [41%]
Copying... [52%]
Copying... [60%]
Copying... [71%]
Copying... [82%]
Copying... [90%]
Copying... [100%]
Done.