注释类型 HTTPProxy
@Documented
@MethodLifeCycle(HTTPProxyLifeCycle.class)
@RequestAttributes
@Retention(RUNTIME)
@Target({TYPE,METHOD,ANNOTATION_TYPE})
public @interface HTTPProxy
HTTP正向代理注解
- 从以下版本开始:
- 1.5.0-BETA5
- 作者:
- gongjun [dt_flys@hotmail.com]
-
可选元素概要
可选元素
-
元素详细资料
-
type
ForestProxyType type代理类型- 返回:
- 代理类型
- 默认值:
- HTTP
-
host
String host代理服务主机地址- 返回:
- 代理服务主机地址
- 默认值:
- ""
-
port
String port代理服务端口号- 返回:
- 代理服务端口号
- 默认值:
- "80"
-
username
String username代理用户名- 返回:
- 代理用户名
- 默认值:
- ""
-
password
String password代理密码- 返回:
- 代理密码
- 默认值:
- ""
-
headers
String[] headershttp proxy headers- 返回:
- http proxy headers
- 默认值:
- {}
-
source
Class<? extends HTTPProxySource> source动态构建正向代理信息的回调函数接口类- 返回:
- 回调函数接口类
- 默认值:
- com.dtflys.forest.callback.HTTPProxySource.class
-