Skip to content

Commit

Permalink
【拜伦Android基础库】提交HTTP的PUT方法
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhao committed Mar 27, 2019
1 parent 6058f96 commit 7d727b0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.bailun.bl_commonlib.net.NetworkTransmissionDefine;

import org.xutils.common.Callback;
import org.xutils.http.HttpMethod;
import org.xutils.http.RequestParams;
import org.xutils.x;

Expand Down Expand Up @@ -53,6 +54,9 @@ public void onFinished() {
case NetworkTransmissionDefine.HttpMethod.POST:
cancelable = x.http().post(params, libCallback);
break;
case NetworkTransmissionDefine.HttpMethod.PUT:
cancelable = x.http().request(HttpMethod.PUT,params,libCallback);
break;
default:
break;
}
Expand Down

0 comments on commit 7d727b0

Please sign in to comment.