![](/img/trans.png)
[英]Associating responses with specific requests using Loopj Android Asynchronous Http Client
[英]Getting HTTP response code using Android Asynchronous Http Client (Loopj)
我正在使用loopj與其他服務器進行通信,該服務器針對特定的成功響應(即200、202)具有不同的HTTP響應代碼。 AsyncHttpResponseHandler具有onSuccess(String content)回調,但沒有任何返回HTTP響應代碼的回調。 我怎么能得到這個?
嘗試
@Override
public void onSuccess(int statusCode, String content) {
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.