   public lazy var cookies: [String: HTTPCookie] = {
     let foundCookies: [HTTPCookie]
     if let headers = self.response?.HTTPHeaders, let url = self.response?.url {
+      #if os(Linux)
       foundCookies = HTTPCookie.cookies(withResponseHeaderFields: headers,
                                         forURL: url) as [HTTPCookie]
+      #else
+      foundCookies = HTTPCookie.cookies(withResponseHeaderFields: headers,
+                                        for: url) as [HTTPCookie]
+      #endif
     } else {
       foundCookies = []
     }


extension URLResponse {
  var HTTPHeaders: [String: String] {
    return (self as? HTTPURLResponse)?.allHeaderFields ?? [:]
  }
}


import Foundation

#if os(Linux)
import Dispatch
#endif

// stolen from python-requests
let statusCodeDescriptions = [
