Closed ollietb closed 7 years ago
Hello, you have wrap the PluginClient into the HttpMethodsClient:
$client = new PluginClient(
$client,
[$headerSetPlugin, $contentLengthPlugin]
);
$this->http = new HttpMethodsClient($client, $messageFactory);
$response = $this->http->post($path, $headers, $body);
Also, this library is deprecated. You should use php-http/common
This is my logic
I get the error
Fatal error: Call to undefined method Http\Client\Common\PluginClient::get()
How can I use the methods of HttpMethodsClient with those plugins?