@Zapnologica, it seems, that author of library provided changes based on this pull request: https://github.com/loopj/android-async-http/pull/170 But it is not released yet, at least latest available .jar version of library is 1.4.3 and it does not include these changes, unfortunately. The only option we may try to use is cloning/forking git repo and including its sources into your project.
UPDATE: Seems library will soon be added to maven central repo, but at least now I was able to add 1.4.4 SNAPSHOT build using gradle for my project with such config changes:
repositories {
...
//android-async-client repo
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
And then in dependencies section:
compile 'com.loopj.android:android-async-http:1.4.4-SNAPSHOT'
Since then I have such a methods for AsyncHttpResponseHandler
available for overriding:
@Override
public void onSuccess(int statusCode, Header[] headers, String content) {
super.onSuccess(statusCode, headers, content);
}
And:
@Override
protected void sendResponseMessage(HttpResponse response) {
super.sendResponseMessage(response);
}
UPD: Here is the link for issue to add lib to maven: https://github.com/loopj/android-async-http/issues/168