forked from apple/swift-nio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept dictionary literals for HTTPHeaders (apple#824)
### Motivation: A convenience/shorthand for developers. ### Modifications: Add conformance to ExpressibleByDictionaryLiteral along with implementation. ### Result: The following is would then be legal in Vapor: ``` return HTTPResponse(status: .ok, headers: ["Content-Type": "text/html"], body: "<table border=1><tr><td><i>Hello</i>, plugin!") ```
- Loading branch information
1 parent
30446ee
commit f84b5b8
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters