public final class DefaultConnectionBuilder extends Object implements ConnectionBuilder
Creates HttpURLConnection instances using the default, platform-provided
mechanism, with sensible production defaults.
| Modifier and Type | Field and Description |
|---|---|
static DefaultConnectionBuilder |
INSTANCE
The singleton instance of the default connection builder.
|
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
openConnection(android.net.Uri uri)
Creates a connection to the specified URL.
|
public static final DefaultConnectionBuilder INSTANCE
The singleton instance of the default connection builder.
@NonNull public HttpURLConnection openConnection(@NonNull android.net.Uri uri) throws IOException
ConnectionBuilderCreates a connection to the specified URL.
openConnection in interface ConnectionBuilderIOException - if an error occurs while attempting to establish the connection.