类 WebHelper
- java.lang.Object
-
- cn.mcres.gyhhy.MXLib.http.WebHelper
-
- 直接已知子类:
WebHelper.HttpHelper
public class WebHelper extends Object
- 作者:
- 32798
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
WebHelper.HttpHelper
static class
WebHelper.PostHelper
-
字段概要
字段 修饰符和类型 字段 说明 protected Consumer<Throwable>
catch$func
protected String
contentType
protected Consumer<URLConnection>
header$func
protected URL
link
protected Proxy
proxy
protected F3c<URLConnection,InputStream>
response$func
-
方法概要
修饰符和类型 方法 说明 void
connect()
protected void
connect0()
WebHelper
contentType(String type)
WebHelper
header(Consumer<URLConnection> func)
static WebHelper.HttpHelper
http(String url)
static WebHelper.HttpHelper
http(URL url)
WebHelper
onCatch(Consumer<Throwable> func)
<T extends URLConnection>
WebHelperonResponse(F3c<T,InputStream> func)
static WebHelper.PostHelper
post(String url)
static WebHelper.PostHelper
post(URL url)
Proxy
proxy()
WebHelper
proxy(Proxy p)
static URL
url(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)
-
-