From a9a13a7b97840a7c0f120d9c2e5b39c0da82b6c9 Mon Sep 17 00:00:00 2001 From: Coen ten Thije Boonkkamp Date: Thu, 20 Feb 2025 07:36:05 +0100 Subject: [PATCH] Adds Sendable conformance to URLRequestData. --- Sources/URLRouting/URLRequestData.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/URLRouting/URLRequestData.swift b/Sources/URLRouting/URLRequestData.swift index a8aa094662..861a572397 100644 --- a/Sources/URLRouting/URLRequestData.swift +++ b/Sources/URLRouting/URLRequestData.swift @@ -5,7 +5,7 @@ import OrderedCollections /// /// Models a URL request in manner that can be incrementally parsed in an efficient way, by storing /// its various fields as subsequences for parsers to consume. -public struct URLRequestData: Equatable, _EmptyInitializable { +public struct URLRequestData: Sendable, Equatable, _EmptyInitializable { /// The request body. public var body: Data? @@ -99,7 +99,7 @@ public struct URLRequestData: Equatable, _EmptyInitializable { /// /// Used by ``URLRequestData`` to model query parameters and headers in a way that can be /// efficiently parsed. - public struct Fields { + public struct Fields: Sendable { public var fields: OrderedDictionary> @usableFromInline var isNameCaseSensitive: Bool