Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let login: LoginModel = LoginModel(user: "tester", password: "password")
- let loginReq = UserAPI.apiUserLoginPostWithRequestBuilder(login: login)
- loginReq.execute { (userModel, error) in
- // ...
- if let resp = userModel
- {
- print("Body :(resp.header["Set-Cookie"])") // correct cookie is present in response
- ...
- }
Add Comment
Please, Sign In to add comment