类 WebHelper
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.http.WebHelper
-
- 直接已知子类:
WebHelper.HttpHelper
public class WebHelper extends Object
- 作者:
- 32798
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classWebHelper.HttpHelperstatic classWebHelper.PostHelper
-
字段概要
字段 修饰符和类型 字段 说明 protected Consumer<Throwable>catch$funcprotected StringcontentTypeprotected Consumer<URLConnection>header$funcprotected URLlinkprotected Proxyproxyprotected F3c<URLConnection,InputStream>response$func
-
方法概要
修饰符和类型 方法 说明 voidconnect()protected voidconnect0()WebHelpercontentType(String type)WebHelperheader(Consumer<URLConnection> func)static WebHelper.HttpHelperhttp(String url)static WebHelper.HttpHelperhttp(URL url)WebHelperonCatch(Consumer<Throwable> func)<T extends URLConnection>
WebHelperonResponse(F3c<T,InputStream> func)static WebHelper.PostHelperpost(String url)static WebHelper.PostHelperpost(URL url)Proxyproxy()WebHelperproxy(Proxy p)static URLurl(String url)
-
-
-
字段详细资料
-
contentType
protected String contentType
-
proxy
protected Proxy proxy
-
link
protected final URL link
-
header$func
protected Consumer<URLConnection> header$func
-
response$func
protected F3c<URLConnection,InputStream> response$func
-
-
方法详细资料
-
http
public static WebHelper.HttpHelper http(String url)
-
http
public static WebHelper.HttpHelper http(URL url)
-
post
public static WebHelper.PostHelper post(String url)
-
post
public static WebHelper.PostHelper post(URL url)
-
proxy
public Proxy proxy()
-
connect0
protected void connect0() throws IOException- 抛出:
IOException
-
connect
public void connect()
-
onResponse
public <T extends URLConnection> WebHelper onResponse(F3c<T,InputStream> func)
-
header
public WebHelper header(Consumer<URLConnection> func)
-
-