程序包 | 说明 |
---|---|
org.nutz.http |
简洁的 Http 客户端实现
建议大家不要用这个包里的东东,虽然它能工作,但是出了问题我们一概不负责,谢谢 -_-!
|
org.nutz.http.sender |
限定符和类型 | 字段和说明 |
---|---|
protected Callback<Response> |
Sender.callback |
限定符和类型 | 方法和说明 |
---|---|
Response |
Sender.call() |
protected Response |
Sender.createResponse(Map<String,String> reHeaders) |
static Response |
Http.get(String url)
访问一个URL
|
static Response |
Http.get(String url,
Header header,
int timeout) |
static Response |
Http.get(String url,
int timeout)
访问一个URL,并设置超时
|
static Response |
Http.get(String url,
Map<String,Object> params,
int timeout) |
static Response |
Http.post2(String url,
Map<String,Object> params,
int timeout)
访问一个URL,并设置超时及参数
|
static Response |
Http.post3(String url,
Object body,
Header header,
int timeout) |
abstract Response |
Sender.send() |
static Response |
Http.upload(String url,
Map<String,Object> params,
Header header,
int timeout) |
限定符和类型 | 方法和说明 |
---|---|
Future<Response> |
Sender.send(Callback<Response> callback) |
限定符和类型 | 方法和说明 |
---|---|
void |
HttpReqRespInterceptor.afterResponse(Request request,
HttpURLConnection conn,
Response response) |
void |
Cookie.afterResponse(Request request,
HttpURLConnection conn,
Response response) |
限定符和类型 | 方法和说明 |
---|---|
Future<Response> |
Sender.send(Callback<Response> callback) |
Sender |
Sender.setCallback(Callback<Response> callback) |
限定符和类型 | 方法和说明 |
---|---|
Response |
PostSender.send() |
Response |
GetSender.send() |
Response |
FilePostSender.send() |
Copyright © 2017. All rights reserved.