/**
* {@inheritdoc}
*/
public function send($uri, $payload)
{
try {
$response = $this->client->post($uri, ['headers' => $this->getHeaders(true), 'body' => $payload]);
} catch (AdapterException $e) {
throw TcpException::transportError($e);
} catch (BadResponseException $e) {
throw HttpException::httpError($e->getMessage(), $e->getResponse()->getStatusCode(), $e);
}
return $response->getBody(true);
}