We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bdbd7a commit 75866fbCopy full SHA for 75866fb
Sources/HTTPHeaders/HTTPHeader.swift
@@ -46,6 +46,14 @@ extension HTTPHeader where T == String {
46
}
47
48
49
+extension HTTPHeader where T == [String] {
50
+ public init(field: String) {
51
+ self.init(field: field) {
52
+ $0.components(separatedBy: ",").map { $0.trimmingCharacters(in: .whitespaces) }
53
+ }
54
55
+}
56
+
57
extension HTTPHeader where T == Int {
58
public init(field: String) {
59
self.init(field: field) { Int($0) }
0 commit comments