Browse Source

add alias for get, easier for static imports

tags/2.0.1
Jonathan Cobb 4 years ago
parent
commit
cd654568ba
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/java/org/cobbzilla/util/http/HttpUtil.java

+ 2
- 0
src/main/java/org/cobbzilla/util/http/HttpUtil.java View File

@@ -64,6 +64,8 @@ public class HttpUtil {
return query_pairs; 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) throws IOException { return get(urlString, null); }


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


Loading…
Cancel
Save