[add] 网络请求添加

This commit is contained in:
liujing
2021-11-03 19:58:05 +08:00
parent c0b4f95a32
commit 27767f5f73
14 changed files with 172 additions and 158 deletions

View File

@@ -8,6 +8,8 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.wifi.WifiManager;
@@ -24,17 +26,21 @@ import androidx.core.content.ContextCompat;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.text.DecimalFormat;
import java.util.Enumeration;
import java.util.concurrent.atomic.AtomicReference;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

View File

@@ -24,7 +24,7 @@ public class RequestOptions {
/**
* Private constructor with some default initialization.
*/
private RequestOptions( @CallerType Object caller ) {
public RequestOptions(@CallerType Object caller) {
this.caller = caller;
this.context = Util.getContext( caller );
this.parameter = Collections.emptyMap();