Alamofire: how to set cookie with the 4.0 migration

Created on 14 Sep 2016  路  1Comment  路  Source: Alamofire/Alamofire

Hi, in the past we can set cookie in the following way
Alamofire.Manager.sharedInstance.session.configuration.HTTPCookieStorage?.setCookies

Now the manager is replaced with SessionManager, but it doesn't have the sharedInstance anymore.

How to do this now in the new version?
Thanks!

support

Most helpful comment

@qgliu sharedInstance has been renamed default in accordance with Swift 3's new naming guidelines. You'll find what you want there.

>All comments

@qgliu sharedInstance has been renamed default in accordance with Swift 3's new naming guidelines. You'll find what you want there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthijsotterloo picture matthijsotterloo  路  3Comments

solomon23 picture solomon23  路  3Comments

Tulleb picture Tulleb  路  3Comments

lvandal picture lvandal  路  3Comments

badrinathvm picture badrinathvm  路  3Comments