github地址:https://github.com/loopj/android-async-http
使用上:官方建议使用一个静态的AsyncHttpClient:
1、AsyncHttpClient 中:
cancelRequests(Context context, boolean mayInterruptIfRunning);
cancelAllRequests(boolean mayInterruptIfRunning);
2、RequestHandle 中:
cancel(boolean mayInterruptIfRunning)