Skip to content

Commit

Permalink
增加sendGet无参请求方法
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Nov 9, 2021
1 parent 9610587 commit 70d3db2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/com/ruoyi/common/utils/http/HttpUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ public class HttpUtils
{
private static final Logger log = LoggerFactory.getLogger(HttpUtils.class);

/**
* 向指定 URL 发送GET方法的请求
*
* @param url 发送请求的 URL
* @return 所代表远程资源的响应结果
*/
public static String sendGet(String url)
{
return sendGet(url, StringUtils.EMPTY, Constants.UTF8);
}

/**
* 向指定 URL 发送GET方法的请求
*
Expand Down

0 comments on commit 70d3db2

Please sign in to comment.