This commit is contained in:
Looly 2024-01-17 11:02:31 +08:00
parent 2959e1798d
commit d1e8b89bda

View File

@ -60,9 +60,8 @@ public class HttpUtil {
* @param method 方法枚举{@link Method} * @param method 方法枚举{@link Method}
* @param url 请求的URL可以使HTTP或者HTTPS * @param url 请求的URL可以使HTTP或者HTTPS
* @return {@link Request} * @return {@link Request}
* @since 3.0.9
*/ */
public static Request createRequest(String url, Method method) { public static Request createRequest(final String url, final Method method) {
return Request.of(url).method(method); return Request.of(url).method(method);
} }
@ -71,9 +70,8 @@ public class HttpUtil {
* *
* @param url 请求的URL可以使HTTP或者HTTPS * @param url 请求的URL可以使HTTP或者HTTPS
* @return {@link Request} * @return {@link Request}
* @since 3.2.0
*/ */
public static Request createGet(String url) { public static Request createGet(final String url) {
return createRequest(url, Method.GET); return createRequest(url, Method.GET);
} }
@ -82,9 +80,8 @@ public class HttpUtil {
* *
* @param url 请求的URL可以使HTTP或者HTTPS * @param url 请求的URL可以使HTTP或者HTTPS
* @return {@link Request} * @return {@link Request}
* @since 3.2.0
*/ */
public static Request createPost(String url) { public static Request createPost(final String url) {
return createRequest(url, Method.POST); return createRequest(url, Method.POST);
} }