public class RouteHttpClient extends Object
构造器和说明 |
---|
RouteHttpClient()
构造实例
|
限定符和类型 | 方法和说明 |
---|---|
void |
cancelRequests(Object tag,
boolean mayInterruptIfRunning)
取消请求
|
void |
send(Object tag,
String url,
Map<String,String> params,
RouteResponseHandler responseHandler,
String... host)
发起请求
|
protected void |
sendRequest(OkHttpClient client,
Request uriRequest,
RouteResponseHandler responseHandler,
Object context,
String... host) |
public void send(Object tag, String url, Map<String,String> params, RouteResponseHandler responseHandler, String... host)
tag
- url
- params
- responseHandler
- host
- protected void sendRequest(OkHttpClient client, Request uriRequest, RouteResponseHandler responseHandler, Object context, String... host)
public void cancelRequests(Object tag, boolean mayInterruptIfRunning)
tag
- mayInterruptIfRunning
-