| 程序包 | 说明 |
|---|---|
| me.wuwenbin.tools.http.apache | |
| me.wuwenbin.tools.http.apache.config |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
ApacheHttp.delete(HttpApacheConfig config)
以Delete方式,请求资源或服务
|
OutputStream |
ApacheHttp.down(HttpApacheConfig config)
下载文件
|
String |
ApacheHttp.get(HttpApacheConfig config)
以Get方式,请求资源或服务
|
String |
ApacheHttp.head(HttpApacheConfig config)
以Head方式,请求资源或服务
|
String |
ApacheHttp.options(HttpApacheConfig config)
以Options方式,请求资源或服务
|
String |
ApacheHttp.patch(HttpApacheConfig config)
以Patch方式,请求资源或服务
|
String |
ApacheHttp.post(HttpApacheConfig config)
以post方式,请求资源或服务
|
String |
ApacheHttp.put(HttpApacheConfig config)
以Put方式,请求资源或服务
|
String |
ApacheHttp.send(HttpApacheConfig config)
请求资源或服务
|
int |
ApacheHttp.status(HttpApacheConfig config)
查看资源链接情况,返回状态码
|
String |
ApacheHttp.trace(HttpApacheConfig config)
以Trace方式,请求资源或服务
|
String |
ApacheHttp.upload(HttpApacheConfig config)
上传文件
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpApacheConfig |
HttpApacheConfig.client(org.apache.http.client.HttpClient client)
HttpClient对象
|
HttpApacheConfig |
HttpApacheConfig.context(org.apache.http.protocol.HttpContext context)
cookie操作相关
|
HttpApacheConfig |
HttpApacheConfig.encoding(String encoding)
输入输出编码
|
HttpApacheConfig |
HttpApacheConfig.files(String[] filePaths)
上传文件时用到
|
HttpApacheConfig |
HttpApacheConfig.files(String[] filePaths,
String inputName)
上传文件时用到
|
HttpApacheConfig |
HttpApacheConfig.files(String[] filePaths,
String inputName,
boolean forceRemoveContentTypeChraset)
上传文件时用到
|
HttpApacheConfig |
HttpApacheConfig.headers(org.apache.http.Header[] headers)
Header头信息
|
HttpApacheConfig |
HttpApacheConfig.headers(org.apache.http.Header[] headers,
boolean isReturnRespHeaders)
Header头信息(是否返回response中的headers)
|
HttpApacheConfig |
HttpApacheConfig.inenc(String inenc)
输入编码
|
static HttpApacheConfig |
HttpApacheConfig.init() |
HttpApacheConfig |
HttpApacheConfig.json(String json)
以json格式字符串作为参数
|
HttpApacheConfig |
HttpApacheConfig.method(HttpMethod method)
请求方法
|
HttpApacheConfig |
HttpApacheConfig.methodName(String methodName)
请求方法
|
HttpApacheConfig |
HttpApacheConfig.out(OutputStream out)
输出流对象
|
HttpApacheConfig |
HttpApacheConfig.outenc(String outenc)
输出编码
|
HttpApacheConfig |
HttpApacheConfig.params(Map<String,Object> map)
传递参数
|
HttpApacheConfig |
HttpApacheConfig.url(String url)
资源url
|
Copyright © 2017. All rights reserved.