接口 HttpBackend
- 所有已知实现类:
AbstractHttpBackend,HttpclientBackend,OkHttp3Backend
public interface HttpBackend
HTTP后端接口
- 从以下版本开始:
- 2017-04-20 18:22
- 作者:
- gongjun[jun.gong@thebeastshop.com]
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明createExecutor(ForestRequest request, LifeCycleHandler lifeCycleHandler) 创建HTTP执行器获取连接池getName()获取后端框架名称voidinit(ForestConfiguration configuration) 初始化后端框架default boolean
-
方法详细资料
-
getName
String getName()获取后端框架名称- 返回:
- 后端框架名称
-
isAllowEncodeBraceInQueryValue
default boolean isAllowEncodeBraceInQueryValue() -
createExecutor
创建HTTP执行器- 参数:
request- Forest请求对象lifeCycleHandler- 生命周期处理器- 返回:
- HTTP执行器
-
init
初始化后端框架- 参数:
configuration- Forest全局配置
-
getConnectionManager
ForestConnectionManager getConnectionManager()获取连接池- 返回:
ForestConnectionManager实例
-