Build Information
Successful build of RealHTTP, reference 1.9.0 (fcec34
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 08:17:58 UTC.
Swift 6 data race errors: 38
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
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: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[68/81] 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) {
/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: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'connect' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[69/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: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'connect' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[70/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: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'connect' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[71/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: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'connect' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[72/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: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'connect' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[73/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: add '@MainActor' to make static property 'allCases' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'connect' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'delete' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'get' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'head' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'options' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'patch' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'post' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'put' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'trace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 |
56 | // MARK: - Public Properties
[74/81] Compiling RealHTTP HTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
[75/81] Compiling RealHTTP HTTPClientDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
[76/81] Compiling RealHTTP HTTPRequest+Combine.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
[77/81] Compiling RealHTTP HTTPRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
[78/81] Compiling RealHTTP HTTPResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
[79/81] Compiling RealHTTP HTTPBody.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
[80/81] Compiling RealHTTP HTTPSerializableBody.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
[81/81] Compiling RealHTTP HTTPBody+JSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPClient/HTTPClient.swift:28:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
21 | /// HTTPClient is the place where each request will be executed.
22 | /// It contains the complete configuration, keep cookies and sessions.
23 | public class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 |
25 | // MARK: - Public Properties
26 |
27 | /// Shared HTTPClient instance.
28 | public static let shared = HTTPClient(baseURL: nil)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HTTPClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | /// Delegate of the client.
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:22:22: warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 |
21 | public class HTTPRequest: CustomStringConvertible {
22 | public typealias RequestTask = Task<HTTPResponse, Error>
| `- warning: type 'HTTPResponse' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
23 | public typealias RequestModifier = ((inout URLRequest) throws -> Void)
24 | internal static let DefaultTimeout = TimeInterval(10)
/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
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest.swift:270:89: warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
268 | if transferMode == .largeData {
269 | if let dataProducer = byProducingResumeData {
270 | (sessionTask as? URLSessionDownloadTask)?.cancel(byProducingResumeData: dataProducer)
| `- warning: converting non-sendable function value to '@Sendable (Data?) -> Void' may introduce data races
271 | } else {
272 | sessionTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/Internal/HTTPBody/HTTPBody.swift:29:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
22 |
23 | /// Defines the body of a request, including the content's body and additional headers.
24 | public struct HTTPBody {
| `- note: consider making struct 'HTTPBody' conform to the 'Sendable' protocol
25 |
26 | // MARK: - Public Static Properties
27 |
28 | /// No data to send.
29 | public static let empty = HTTPBody(content: Data())
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'HTTPBody' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | // MARK: - Public Properties
/Users/admin/builder/spi-builder-workspace/Sources/RealHTTP/Client/HTTPRequest/HTTPRequest+Combine.swift:31:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
29 | func fetchPublisher(in client: HTTPClient = .shared) -> AnyPublisher<HTTPResponse, Error> {
30 | return Future { fulfill in
31 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
32 | do {
33 | let response = try await self.fetch(client)
| `- note: closure captures 'client' which is accessible to code in the current task
34 | fulfill(.success(response))
35 | } catch {
Build complete! (6.31s)
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"
}
Done.