 
     /// Returns cookie
     ///
-    /// - Parameter key: Cookie name
+    /// - Parameter name: Cookie name
     /// - Returns: Cookie value
-    public func getCookie(for key: String) -> String? {
-        return _cookies[key]
+    public func cookie(for name: String) -> String? {
+        return headers.cookies[name]
     }
 
     /// Returns all cookies
     public var cookies: [String: String] {
-        return _cookies
+        return headers.cookies
     }
 
     /// Returns all get parameters

    public let method: RequestLine.Method

    private let _path: URL

    private var _cookies: [String: String] = [:]

    /// Hostname or IP
    public let remoteHostname: String

            guard values.count == 2 else {
                return
            }
            headers.cookies[values[0]] = values[1]
        }
    }

