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);

  • 相关阅读:
    二维数组
    数组经典排序
    数组复制方法
    循环
    方法和包
    switch

    注释
    面向对象优点
    有参
  • 原文地址:https://www.cnblogs.com/angelshelter/p/3236359.html
Copyright © 2011-2022 走看看