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"]