Package me.qscbm.inlayx.util
Class NetUtils
java.lang.Object
me.qscbm.inlayx.util.NetUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringsendGetRequest(@NonNull String stringUrl) 发送普通的Get请求static StringsendGetRequest(@NonNull String stringUrl, @NonNull Map<String, String> header) 发送普通的Get请求(带Header)
-
Constructor Details
-
NetUtils
public NetUtils()
-
-
Method Details
-
sendGetRequest
发送普通的Get请求- Throws:
IOException
-
sendGetRequest
public static String sendGetRequest(@NonNull @NonNull String stringUrl, @NonNull @NonNull Map<String, String> header) throws IOException发送普通的Get请求(带Header)- Throws:
IOException
-