Skip to content

Commit a815ca7

Browse files
committed
public sendable httpheader
1 parent 8b3ee9b commit a815ca7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Coder Desktop/CoderSDK/HTTP.swift

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ public struct HTTPResponse {
44
let req: URLRequest
55
}
66

7-
public struct HTTPHeader {
8-
let header: String
9-
let value: String
7+
public struct HTTPHeader: Sendable {
8+
public let header: String
9+
public let value: String
10+
public init(header: String, value: String) {
11+
self.header = header
12+
self.value = value
13+
}
1014
}
1115

1216
enum HTTPMethod: String, Equatable, Hashable, Sendable {

0 commit comments

Comments
 (0)