Explorar el Código

add alias for get, easier for static imports

tags/2.0.1
Jonathan Cobb hace 4 años
padre
commit
cd654568ba
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      src/main/java/org/cobbzilla/util/http/HttpUtil.java

+ 2
- 0
src/main/java/org/cobbzilla/util/http/HttpUtil.java Ver fichero

@@ -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 {


Cargando…
Cancelar
Guardar