Skip to content

Commit c61e41e

Browse files
authored
Adds Sendable conformance to URLRequestData. (#112)
1 parent 9924e8b commit c61e41e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/URLRouting/URLRequestData.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import OrderedCollections
55
///
66
/// Models a URL request in manner that can be incrementally parsed in an efficient way, by storing
77
/// its various fields as subsequences for parsers to consume.
8-
public struct URLRequestData: Equatable, _EmptyInitializable {
8+
public struct URLRequestData: Sendable, Equatable, _EmptyInitializable {
99
/// The request body.
1010
public var body: Data?
1111

@@ -99,7 +99,7 @@ public struct URLRequestData: Equatable, _EmptyInitializable {
9999
///
100100
/// Used by ``URLRequestData`` to model query parameters and headers in a way that can be
101101
/// efficiently parsed.
102-
public struct Fields {
102+
public struct Fields: Sendable {
103103
public var fields: OrderedDictionary<String, ArraySlice<Substring?>>
104104

105105
@usableFromInline var isNameCaseSensitive: Bool

0 commit comments

Comments
 (0)