public class Http extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Http.multipart |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static boolean |
autoSwitch |
protected static ProxySwitcher |
proxySwitcher |
| 构造器和说明 |
|---|
Http() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
encode(Object s) |
static Response |
get(String url) |
static Response |
get(String url,
int timeout) |
static ProxySwitcher |
getProxySwitcher() |
static String |
post(String url,
Map<String,Object> params,
int timeout) |
static String |
post(String url,
Map<String,Object> params,
String inenc,
String reenc) |
static Response |
post2(String url,
Map<String,Object> params,
int timeout) |
static void |
setAutoSwitch(boolean use) |
static void |
setHttpProxy(String host,
int port) |
static void |
setProxySwitcher(ProxySwitcher proxySwitcher) |
static void |
setSocktProxy(String host,
int port) |
protected static ProxySwitcher proxySwitcher
protected static boolean autoSwitch
public static void setAutoSwitch(boolean use)
public static void setHttpProxy(String host, int port)
public static void setSocktProxy(String host, int port)
public static ProxySwitcher getProxySwitcher()
public static void setProxySwitcher(ProxySwitcher proxySwitcher)
Copyright © 2014. All rights reserved.