コード例 #1
0
ファイル: HttpCall.java プロジェクト: alexclin0188/httplite
 private Response executeSyncInner(ResponseHandler callback) throws Exception {
   HttpLite lite = request.lite;
   if (callback instanceof DownloadHandler) ((DownloadHandler) callback).doResumeWork();
   if (lite.getRequestFilter() != null)
     lite.getRequestFilter().onRequest(lite, request, callback.resultType());
   Executable executable = lite.getClient().executable(request);
   if (callback instanceof DownloadHandler)
     executable = ((DownloadHandler) callback).wrap(executable);
   setExecutable(executable);
   Response response = executable().execute();
   if (lite.getResponseFilter() != null)
     lite.getResponseFilter().onResponse(lite, request, response);
   response = request.handleResponse(response);
   return response;
 }