mirror of
https://github.com/apple/swift-http-types
synced 2026-11-26 04:57:48 +00:00
Make Request.Method and Response.Status conform to Sendable.
This commit is contained in:
1 parent
39661f4ca8
commit
57140e3abc
3 files changed
+29
-2
No files matched your search
@@ -22,7 +22,7 @@
|
||||
/// the "Host" header.
|
||||
public struct HTTPRequest: Sendable, Hashable {
|
||||
/// The HTTP request method
|
||||
public struct Method: Hashable, RawRepresentable, LosslessStringConvertible {
|
||||
public struct Method: Sendable, Hashable, RawRepresentable, LosslessStringConvertible {
|
||||
/// The string value of the request.
|
||||
public let rawValue: String
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
public struct HTTPResponse: Sendable, Hashable {
|
||||
/// The response status consisting of a 3-digit status code and a reason phrase. The reason
|
||||
/// phrase is ignored by modern HTTP versions.
|
||||
public struct Status: Hashable, ExpressibleByIntegerLiteral, CustomStringConvertible {
|
||||
public struct Status: Sendable, Hashable, ExpressibleByIntegerLiteral, CustomStringConvertible {
|
||||
/// The 3-digit status code.
|
||||
public let code: Int
|
||||
/// The reason phrase.
|
||||
|
||||
Reference in new issue
Block a user