0

I'm using loopj to talk to a rest server which has different HTTP response codes for specific successful responses (i.e 200, 202). The AsyncHttpResponseHandler has an onSuccess(String content) callback but nothing that returns the HTTP response code. How can I get this?

1 Answer 1

1

Try

@Override    
public void onSuccess(int statusCode, String content) {
}
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks. I was using an older version of the code which did not have this callback.
This method is now deprecated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.