Skip to content

Deprecate Apache 4.x HTTP Client - #7340

Merged
dagnir merged 3 commits into
masterfrom
dongie/deprecate-apache4
Sep 8, 2026
Merged

Deprecate Apache 4.x HTTP Client#7340
dagnir merged 3 commits 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!

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
@dagnir dagnir added the no-api-surface-area-change Indicate there is no API surface area change and thus API surface area review is not required label Sep 8, 2026
@dagnir
dagnir enabled auto-merge September 8, 2026 20:56
@dagnir
dagnir added this pull request to the merge queue Sep 8, 2026
Merged via the queue into master with commit e5dfd85 Sep 8, 2026
16 of 18 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 8, 2026
@dagnir
dagnir deleted the dongie/deprecate-apache4 branch September 8, 2026 22:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-api-surface-area-change Indicate there is no API surface area change and thus API surface area review is not required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants