Skip to content

Commit edfbb55

Browse files
committed
Add bool support
1 parent 75866fb commit edfbb55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/HTTPHeaders/HTTPHeader.swift

+6
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@ extension HTTPHeader where T == URL {
9595
self.init(field: field) { URL(string: $0) }
9696
}
9797
}
98+
99+
extension HTTPHeader where T == Bool {
100+
public init(field: String) {
101+
self.init(field: field) { Bool($0) }
102+
}
103+
}

0 commit comments

Comments
 (0)