博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
httpclient新旧版本分割点4.3
阅读量:4363 次
发布时间:2019-06-07

本文共 1635 字,大约阅读时间需要 5 分钟。

从这个版本开始,httpclient的api发生了一次重大调整。主要包括如下: Release 4.3 Final-------------------This is the first stable (GA) release of HttpClient 4.3. The most notable enhancements includedin this release are:* Support for Java 7 try-with-resources for resource management (connection release.)* Added fluent Builder classes for HttpEntity, HttpRequest, HttpClient and SSLContext instances.* Deprecation of preference and configuration API based on HttpParams interface in favor ofconstructor injection and plain configuration objects.* Reliance on object immutability instead of access synchronization for thread safety.Several old classes whose instances can be shared by multiple request exchanges havebeen replaced by immutable equivalents.* DefaultHttpClient,  DecompressingHttpClient, CachingHttpClient and similar classes aredeprecated in favor of builder classes that produce immutable HttpClient instances.* HttpClient builders now dynamically construct a request execution pipeline tailoredspecifically to the user configuration by physically excluding unnecessary protocol components.* There is now an option to construct a minimal HttpClient implementation that can only executebasic HTTP message exchanges without redirects, authentication, state management or proxy support.This feature might be of particular use in web crawler development.* There is now option to avoid strict URI syntax for request URIs by executing HTTP requestswith an explicitly specified target host. HttpClient will no longer attempt to parse the requestURI if it does not need to extract the target host from it.

转载于:https://www.cnblogs.com/zhjh256/p/6921458.html

你可能感兴趣的文章
Web前端学习的路径分享,前端学习方法及途径
查看>>
贪吃蛇小游戏
查看>>
USE PDFCREATE TO CREATE A PDF FILE
查看>>
第八章 watch监听 84 watch-监视路由地址的改变
查看>>
IDEA tomcat乱码
查看>>
个人作业3——个人总结(Alpha阶段)
查看>>
第十章—DOM(三)——Text类型
查看>>
python装饰器
查看>>
vue中时间控件绑定多个输入框
查看>>
gulp browser-sync自动刷新插件
查看>>
在Django运行安装mysqlclient和pymysql
查看>>
结队项目——第一次作业
查看>>
第三阶段 14_JavaWeb基础_JQuery控制页面
查看>>
ThinkPHP使用smarty模板引擎的方法
查看>>
[C#]通过反射访问类私有成员
查看>>
APP开发---Windows查看端口是否被占用
查看>>
浅谈JavaScript中的eval()
查看>>
Unity3D中的线性插值Lerp()函数解析
查看>>
学到的一种把数据集序列化为本地文件的方法
查看>>
Hadoop部署配置文件
查看>>