public function send(RequestInterface $request)
{
if ($this->baseUri !== null) {
// ensure we're actually below the base URI
$request = $request->withUri($this->messageFactory->expandBase($request->getUri(), $this->baseUri));
}
$transaction = new Transaction($request, $this->sender, $this->options, $this->messageFactory);
return $transaction->send();
}