AnsweredAssumed Answered

Capture Response Headers in iOS (Swift)

Question asked by danal03 Employee on Sep 28, 2018
Latest reply on Oct 11, 2018 by danal03

Is it possible to capture the response headers for iOS? In android, it would look something like the below:

 

MASUser.login("admin", "password".toCharArray(), new MASCallback<MASUser>() {
@Override
public void onSuccess(MASUser result) {
}

@Override
public void onError(Throwable e) {
((AuthenticationException)((MASException)e).getRootCause()).getResponse().getHeaders();
}
});

 

But I'm unable to find an equivalent for iOS and the mas.ca.com docs for iOS doesn't highlight this either. Any help would be much appreciated!

Outcomes