API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Http%21Ha...

 * @see \Drupal\Core\Http\Client

There is no such class.

This should be replaced with whatever that class was replaced with, if there was a replacement. Check git history to understand when and why it was removed.

Issue fork drupal-3455110

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joachim created an issue. See original summary.

jagraj_singh_gill’s picture

Assigned: Unassigned » jagraj_singh_gill

I am working on this issue.

jagraj_singh_gill’s picture

I checked the history and found out that this has been removed under this issue : https://www.drupal.org/project/drupal/issues/2493911

Drupal\Core\Http\Client service has been removed. The recommended approach for handling HTTP requests now is to use GuzzleHttp\Client
This change facilitates easier updates and better security management by relying directly on Guzzle.
I have placed the MR to update the @see annotation to point to the new recommended approach. Please review.

Thank You !!

jagraj_singh_gill’s picture

Assigned: jagraj_singh_gill » Unassigned
jagraj_singh_gill’s picture

Status: Active » Needs review
joachim’s picture

Status: Needs review » Reviewed & tested by the community

Good detective work! :)

Looks good.

  • longwave committed 0314d83d on 10.3.x
    Issue #3455110 by jagraj_singh_gill, joachim: HandlerStackConfigurator...

  • longwave committed cac111ab on 10.4.x
    Issue #3455110 by jagraj_singh_gill, joachim: HandlerStackConfigurator...

  • longwave committed 65efa85d on 11.0.x
    Issue #3455110 by jagraj_singh_gill, joachim: HandlerStackConfigurator...

  • longwave committed e4c14cfd on 11.x
    Issue #3455110 by jagraj_singh_gill, joachim: HandlerStackConfigurator...
longwave’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +DevDaysBurgas2024

Backported down to 10.3.x as a docs-only fix.

Committed and pushed e4c14cfdd0 to 11.x and 65efa85d48 to 11.0.x and cac111ab00 to 10.4.x and 0314d83ddd to 10.3.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.