From 4942f1c40f01888d8aa95312f17090a18fd49bb7 Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Thu, 2 Feb 2017 14:17:51 +0100 Subject: [PATCH] fixes vapor/vapor#805 --- http/request.md | 2 +- http/response.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http/request.md b/http/request.md index 05718ff9..f3d5b60e 100644 --- a/http/request.md +++ b/http/request.md @@ -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"] diff --git a/http/response.md b/http/response.md index 6fa43763..cd92f05d 100644 --- a/http/response.md +++ b/http/response.md @@ -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"]