zoukankan      html  css  js  c++  java
  • 2、HttpClient修改处理策略Strategy

    HttpClient提供了很多接口,让我们能自定义处理逻辑,这些接口可以在AbstractHttpClient中找到:

    setAuthSchemes(AuthSchemeRegistry);

    setConnectionBackoffStrategy(ConnectionBackoffStrategy);

    setReuseStrategy(ConnectionReuseStrategy);

    setKeepAliveStrategy(ConnectionKeepAliveStrategy);

    setHttpRequestRetryHandler(HttpRequestRetryHandler);

    setRedirectHandler(RedirectHandler);

    setRedirectStrategy(RedirectStrategy);

    setTargetAuthenticationHandler(AuthenticationHandler);

    setTargetAuthenticationStrategy(AuthenticationStrategy);

    setProxyAuthenticationHandler(AuthenticationHandler);

    setProxyAuthenticationStrategy(AuthenticationStrategy);

    setUserTokenHandler(UserTokenHandler);

  • 相关阅读:
    导出表结构
    smarty cache
    浏览器插件
    互联网技术网站介绍
    目录拷贝
    sphinx搜索不到
    powerdesigner 导出数据库表结构
    PowerDesigner 连接 mysql
    update join
    ClipboardJS的坑,
  • 原文地址:https://www.cnblogs.com/angelshelter/p/3236359.html
Copyright © 2011-2022 走看看