Skip to content

Deprecate Apache 4.x HTTP Client - #7340

Open
dagnir wants to merge 1 commit into
masterfrom
dongie/deprecate-apache4
Open

Deprecate Apache 4.x HTTP Client#7340
dagnir wants to merge 1 commit into
masterfrom
dongie/deprecate-apache4

Conversation

@dagnir

@dagnir dagnir commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Motivation and Context

ApacheHttpClient, which is based on Apache HttpClient 4.x is being deprecated in favor of the Apache 5.x HTTP client.

The Apache 5.x client has already replaced the 4.x client as the default sync HTTP client since 2.46.0.

Apache 5.x is actively maintained and receives new feature updates whereas Apache 4.x is in maintenance mode, only receiving critical fixes.

Modifications

  • Deprecate the public classes in apache-client: ApacheHttpClient, ApacheHttpClient.Builder, ProxyConfiguration, ApacheSdkHttpService

Testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@dagnir
dagnir requested a review from a team as a code owner September 1, 2026 20:21
@dagnir
dagnir requested a review from RanVaknin September 1, 2026 20:23
@dagnir

dagnir commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Just realized I missed adding a changelog entry. Will add!

* .socketTimeout(Duration.ofSeconds(10))
* .build();
* </pre>
* @deprecated Apache 4.x is in maintenance mode. Users are encouraged to switch to the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we need this same exact comment duplicated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ApacheHttpClient, which is based on Apache HttpClient 4.x is being
deprecated in favor of the Apache 5.x HTTP client.

The Apache 5.x client has already replaced the 4.x client as the default sync
HTTP client since 2.46.0.

Apache 5.x is actively maintained and receives new feature updates whereas
Apache 4.x is in maintenance mode, only receiving critical fixes.
@dagnir
dagnir force-pushed the dongie/deprecate-apache4 branch from 39a52d6 to 210abdb Compare September 2, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants