|
@@ -23,9 +23,9 @@ import okhttp3.Response;
|
|
|
/**
|
|
|
* OKHttp
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @date 2018年9月6日
|
|
|
- * @Copyright (c) 2018-2020 WANGWEI [QQ:522080330] All Rights Reserved.
|
|
|
+ * @Copyright (c) 2018-2020 [QQ:522080330] All Rights Reserved.
|
|
|
*/
|
|
|
public class OKHttpUtil {
|
|
|
|
|
@@ -38,9 +38,9 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* 请求体构建器
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @date 2019年4月10日
|
|
|
- * @Copyright (c) 2018-2020 WANGWEI [QQ:522080330] All Rights Reserved.
|
|
|
+ * @Copyright (c) 2018-2020 [QQ:522080330] All Rights Reserved.
|
|
|
*/
|
|
|
public static interface RequestBodyBuilder {
|
|
|
RequestBody build();
|
|
@@ -49,9 +49,9 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* json请求体构建器
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @date 2019年4月10日
|
|
|
- * @Copyright (c) 2018-2020 WANGWEI [QQ:522080330] All Rights Reserved.
|
|
|
+ * @Copyright (c) 2018-2020 [QQ:522080330] All Rights Reserved.
|
|
|
*/
|
|
|
public static final class JsonBodyBuilder implements RequestBodyBuilder {
|
|
|
|
|
@@ -93,7 +93,7 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* 发送请求 (带json请求体)
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @param httpMethod
|
|
|
* @param url
|
|
|
* @param headers
|
|
@@ -108,7 +108,7 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* 发送请求 (带请求体)
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @param httpMethod
|
|
|
* @param url
|
|
|
* @param headers
|
|
@@ -148,7 +148,7 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* 发送请求
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @param httpMethod
|
|
|
* @param url
|
|
|
* @return
|
|
@@ -160,7 +160,7 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* 发送请求
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @param httpMethod
|
|
|
* @param url
|
|
|
* @param headers
|
|
@@ -200,7 +200,7 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* 发送请求 (表单)
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @param httpMethod
|
|
|
* @param url
|
|
|
* @param headers
|
|
@@ -247,7 +247,7 @@ public class OKHttpUtil {
|
|
|
/**
|
|
|
* 发送请求 (包含文件表单)
|
|
|
*
|
|
|
- * @author WANGWEI
|
|
|
+ * @author
|
|
|
* @param httpMethod
|
|
|
* @param url
|
|
|
* @param headers
|