接口 HttpBackend

所有已知实现类:
AbstractHttpBackend, HttpclientBackend, OkHttp3Backend

public interface HttpBackend
HTTP后端接口
从以下版本开始:
2017-04-20 18:22
作者:
gongjun[jun.gong@thebeastshop.com]
  • 方法详细资料

    • getName

      String getName()
      获取后端框架名称
      返回:
      后端框架名称
    • isAllowEncodeBraceInQueryValue

      default boolean isAllowEncodeBraceInQueryValue()
    • createExecutor

      HttpExecutor createExecutor(ForestRequest request, LifeCycleHandler lifeCycleHandler)
      创建HTTP执行器
      参数:
      request - Forest请求对象
      lifeCycleHandler - 生命周期处理器
      返回:
      HTTP执行器
    • init

      void init(ForestConfiguration configuration)
      初始化后端框架
      参数:
      configuration - Forest全局配置
    • getConnectionManager

      ForestConnectionManager getConnectionManager()
      获取连接池
      返回:
      ForestConnectionManager实例