mirror of
https://github.com/apple/swift-http-structured-headers
synced 2026-11-24 04:37:50 +00:00
Adopt Sendable (#23)
* Make RawStructuredFieldValues sendable * Make StructuredFieldValues Sendable * Rename _Sendable to SHSendable * Fix date checking * Fix warning * Soundness * Update date Co-authored-by: Cory Benfield <lukasa@apple.com> Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
1 parent
a3c50a9c10
commit
522c301c0f
10 files changed
+39
-14
No files matched your search
@@ -16,7 +16,7 @@ import RawStructuredFieldValues
|
||||
|
||||
/// A `StructuredFieldValueDecoder` allows decoding `Decodable` objects from a HTTP
|
||||
/// structured header field.
|
||||
public struct StructuredFieldValueDecoder {
|
||||
public struct StructuredFieldValueDecoder: SHSendable {
|
||||
/// A strategy that should be used to map coding keys to wire format keys.
|
||||
public var keyDecodingStrategy: KeyDecodingStrategy?
|
||||
|
||||
@@ -25,7 +25,7 @@ public struct StructuredFieldValueDecoder {
|
||||
|
||||
extension StructuredFieldValueDecoder {
|
||||
/// A strategy that should be used to map coding keys to wire format keys.
|
||||
public struct KeyDecodingStrategy: Hashable {
|
||||
public struct KeyDecodingStrategy: Hashable, SHSendable {
|
||||
fileprivate enum Base: Hashable {
|
||||
case lowercase
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user