public class RequestMeta extends Object implements Cloneable, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
String |
charset
请求编码
|
String |
contentType
请求类型
|
Map<String,Path> |
dataFileMap
DataFile信息
|
Map<String,String> |
dataMap
Data信息
|
boolean |
followRedirects
自动重定向
|
Map<String,String> |
headers
Header信息
|
List<HttpCookie> |
httpCookieList
保存HttpCookie
|
boolean |
ignoreHttpErrors
是否忽略http状态异常
|
Connection.Method |
method
请求方法
|
Proxy |
proxy
Http代理
|
int |
redirectTimes
重定向次数
|
byte[] |
requestBody
自定义请求体
|
int |
retryTimes
重试次数
|
int |
timeout
超时设置
|
URL |
url
访问地址
|
| 构造器和说明 |
|---|
RequestMeta() |
public URL url
public transient Connection.Method method
public transient Proxy proxy
public int timeout
public boolean followRedirects
public boolean ignoreHttpErrors
public byte[] requestBody
public String charset
public String contentType
public int retryTimes
public int redirectTimes
public transient List<HttpCookie> httpCookieList
Copyright © 2020. All rights reserved.