From 9e9943fbdffbe9d5bb0324f16b44873bc11e6dd9 Mon Sep 17 00:00:00 2001 From: Galvin Li Date: Mon, 18 Mar 2024 10:02:01 +0800 Subject: [PATCH] Make `HTTPMethod` Sendable (#3848) ### Goals :soccer: Just like the https://github.com/Alamofire/Alamofire/pull/3816 but for `HTTPMethod`. --- Source/Core/HTTPMethod.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/HTTPMethod.swift b/Source/Core/HTTPMethod.swift index 539d2146e..ed51b689e 100644 --- a/Source/Core/HTTPMethod.swift +++ b/Source/Core/HTTPMethod.swift @@ -26,7 +26,7 @@ /// `HTTPMethod.get != HTTPMethod(rawValue: "get")`. /// /// See https://tools.ietf.org/html/rfc7231#section-4.3 -public struct HTTPMethod: RawRepresentable, Equatable, Hashable { +public struct HTTPMethod: RawRepresentable, Equatable, Hashable, Sendable { /// `CONNECT` method. public static let connect = HTTPMethod(rawValue: "CONNECT") /// `DELETE` method.