HttpClient new and old version split point 4.3

Source: Internet
Author: User

Starting with this version, HttpClient's API has undergone a major adjustment. Mainly include the following:
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 Preferenc E and configuration API based on Httpparams interface in favor Ofconstructor injection and plain configuration objects.* R Eliance on object immutability instead of access synchronization for thread safety. Several old classes whose instances can is shared by multiple request exchanges havebeen replaced by immutable equivalents . * Defaulthttpclient, Decompressinghttpclient, cachinghttpclient and similar classes aredeprecated in favor of builder CL Asses that produce immutable HttpClient instances.* HttpClient Builders now dynamically construct a request execution pipe Line tailoredspecifically to the user configuration by physically excluDing unnecessary protocol components.* There is now an option to construct a minimal HttpClient implementation that can on LY executebasic HTTP message exchanges without redirects, authentication, state management or proxy support. This feature might are of particular use in web crawler development.* There are now option to avoid strict URIs syntax for re Quest URIs by executing HTTP requestswith an explicitly specified target host. HttpClient would no longer attempt to parse the RequestUri if it does not need to extract the target host from it.

HttpClient new and old version split point 4.3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.