This commit is contained in:
Tanner Nelson 2017-02-02 14:17:51 +01:00
parent b49c3e3717
commit 4942f1c40f
No known key found for this signature in database
GPG Key ID: 9C24375C64856B76
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ request.headers["Authorization"] = ... my auth token
We generally seek to improve code bases by removing stringly typed code where possible. We can add variables to the headers using generic extensions.
```swift
extension KeyAccessible where Key == HeaderKey, Value == String {
extension HTTP.KeyAccessible where Key == HeaderKey, Value == String {
var customKey: String? {
get {
return self["Custom-Key"]

View File

@ -40,7 +40,7 @@ response.headers["Authorization"] = ... my auth token
We generally seek to improve code bases by removing stringly typed code where possible. We can add variables to the headers using generic extensions.
```swift
extension KeyAccessible where Key == HeaderKey, Value == String {
extension HTTP.KeyAccessible where Key == HeaderKey, Value == String {
var customKey: String? {
get {
return self["Custom-Key"]