Package | Description |
---|---|
org.nutz.http |
简洁的 Http 客户端实现
|
org.nutz.http.sender |
Modifier and Type | Field and Description |
---|---|
protected Callback<Response> |
Sender.callback |
Modifier and Type | Method and Description |
---|---|
Response |
Sender.call() |
protected Response |
Sender.createResponse(NutMap reHeaders) |
static Response |
Http.get(String url)
访问一个URL
|
static Response |
Http.get(String url,
Header header,
int timeout) |
static Response |
Http.get(String url,
Header header,
int timeout,
int connTimeout) |
static Response |
Http.get(String url,
int timeout)
访问一个URL,并设置超时
|
static Response |
Http.get(String url,
int timeout,
int connTimeout) |
static Response |
Http.get(String url,
Map<String,Object> params,
int timeout) |
static Response |
Http.get(String url,
Map<String,Object> params,
int timeout,
int connTimeout) |
static Response |
Http.post2(String url,
Map<String,Object> params,
int timeout)
访问一个URL,并设置超时及参数
|
static Response |
Http.post2(String url,
Map<String,Object> params,
int timeout,
int connTimeout) |
static Response |
Http.post3(String url,
Object body,
Header header,
int timeout) |
static Response |
Http.post3(String url,
Object body,
Header header,
int timeout,
int connTimeout) |
static Response |
Http.postXML(String url,
String xml,
int timeout) |
abstract Response |
Sender.send() |
static Response |
Http.upload(String url,
Map<String,Object> params,
Header header,
int timeout) |
static Response |
Http.upload(String url,
Map<String,Object> params,
Header header,
int timeout,
int connTimeout) |
Modifier and Type | Method and Description |
---|---|
Future<Response> |
Sender.send(Callback<Response> callback) |
Modifier and Type | Method and Description |
---|---|
void |
HttpReqRespInterceptor.afterResponse(Request request,
HttpURLConnection conn,
Response response) |
void |
Cookie.afterResponse(Request request,
HttpURLConnection conn,
Response response) |
Modifier and Type | Method and Description |
---|---|
Future<Response> |
Sender.send(Callback<Response> callback) |
Sender |
Sender.setCallback(Callback<Response> callback) |
Modifier and Type | Method and Description |
---|---|
Response |
PostSender.send() |
Response |
FilePostSender.send() |
Response |
GetSender.send() |
Copyright © 2019. All rights reserved.