Skip to content

Replace Guzzle by Symfony HttpClient #2

Open

Description

@JorisCourtois-fulll

Transform hapiclient-php-guzzle7 into hapiclient-symfony.

HapiClient\Http\HapiClient.php

  • Replace usage GuzzleHttp\Client by Symfony\Contracts\HttpClient\HttpClientInterface
  • Remove usage of \GuzzleHttp\Psr7\Request, use HapiClient\Http\Request ( no need of \GuzzleHttp\Psr7\Utils::streamFor($body) as HttpClient already streams the body)

Bonus

Find a replacement for GuzzleHttp\UriTemplate\UriTemplate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions