Skip to content

Commit 66c523c

Browse files
feat(http-headers): dictionary to http readers (#13)
1 parent 718845b commit 66c523c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Vapor
2+
3+
public extension HTTPHeaders {
4+
init(_ headers: [String: String]) {
5+
self.init(headers.map { ($0, $1) })
6+
}
7+
}

0 commit comments

Comments
 (0)