程序包 | 说明 |
---|---|
org.nutz.http |
简洁的 Http 客户端实现
建议大家不要用这个包里的东东,虽然它能工作,但是出了问题我们一概不负责,谢谢 -_-!
|
限定符和类型 | 方法和说明 |
---|---|
Header |
Header.addAll(Map<String,String> map) |
Header |
Header.asFormContentType() |
Header |
Header.asFormContentType(String enc) |
Header |
Header.asJsonContentType() |
Header |
Header.asJsonContentType(String enc) |
Header |
Header.clear() |
static Header |
Header.create() |
static Header |
Header.create(Map<String,String> properties) |
static Header |
Header.create(String properties) |
Header |
Response.getHeader() |
Header |
Request.getHeader() |
Header |
Header.remove(String key) |
Header |
Header.set(String key,
String value) |
限定符和类型 | 方法和说明 |
---|---|
static Request |
Request.create(String url,
Request.METHOD method,
Map<String,Object> params,
Header header) |
static Request |
Request.create(String url,
Request.METHOD method,
String paramsAsJson,
Header header) |
static Request |
Request.get(String url,
Header header) |
static Response |
Http.get(String url,
Header header,
int timeout) |
static Request |
Request.post(String url,
Header header) |
static Response |
Http.post3(String url,
Object body,
Header header,
int timeout) |
Request |
Request.setHeader(Header header) |
static Response |
Http.upload(String url,
Map<String,Object> params,
Header header,
int timeout) |
Copyright © 2017. All rights reserved.