public function send(RequestInterface
$request, array
$options =
[]): ResponseInterface
{ $options[RequestOptions::SYNCHRONOUS
] = true;
return $this->
sendAsync($request,
$options)->
wait();
} /**
* The HttpClient PSR (PSR-18) specify this method.
*
* {@inheritDoc}
*/
public function sendRequest(RequestInterface
$request): ResponseInterface
{ $options[RequestOptions::SYNCHRONOUS
] = true;
$options[RequestOptions::ALLOW_REDIRECTS
] = false;