Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 705 Bytes

URLConnections.md

File metadata and controls

23 lines (15 loc) · 705 Bytes

URL Connections

download from an url connection into a byte array:

URLConnection connection = URLConnections.urlConnectionOf(downloadUrl);
byte[] response = URLConnections.downloadIntoByteArray(connection, (url, bytesCopied, contentLength) -> {

});

download from an url connection into a file:

URLConnection connection = URLConnections.urlConnectionOf(downloadUrl);
URLConnections.downloadIntoFile(connection, file, (url, bytesCopied, contentLength) -> {

});

Enable Env Variable HttpProxy Detection

set system property de.flapdoodle.net.useEnvProxySelector to true to enable http_proxy, https_proxy and no_proxy env variable support.