I am working on a login application. After successful login response comes back with cookie data. How can I use/save this data for my future requests? For starters
class func cookiesWithResponseHeaderFields(_ headerFields: [String : String], forURL URL: NSURL) -> [NSHTTPCookie]
Note that headerFields is [String: String] Dictionary and the compiler is complaining that you're passing [NSObject : AnyObject]