瀏覽代碼

add alias for get, easier for static imports

tags/2.0.1
Jonathan Cobb 4 年之前
父節點
當前提交
cd654568ba
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/main/java/org/cobbzilla/util/http/HttpUtil.java

+ 2
- 0
src/main/java/org/cobbzilla/util/http/HttpUtil.java 查看文件

@@ -64,6 +64,8 @@ public class HttpUtil {
return query_pairs;
}

public static InputStream getUrlInputStream(String url) throws IOException { return get(url); }

public static InputStream get (String urlString) throws IOException { return get(urlString, null); }

public static InputStream get (String urlString, Map<String, String> headers) throws IOException {


Loading…
取消
儲存