function Client::sendRequest
Same name in this branch
- 11.1.x vendor/php-http/guzzle7-adapter/src/Client.php \Http\Adapter\Guzzle7\Client::sendRequest()
The HttpClient PSR (PSR-18) specify this method.
Overrides ClientInterface::sendRequest
File
-
vendor/
guzzlehttp/ guzzle/ src/ Client.php, line 132
Class
- Client
- @final
Namespace
GuzzleHttpCode
public function sendRequest(RequestInterface $request) : ResponseInterface {
$options[RequestOptions::SYNCHRONOUS] = true;
$options[RequestOptions::ALLOW_REDIRECTS] = false;
$options[RequestOptions::HTTP_ERRORS] = false;
return $this->sendAsync($request, $options)
->wait();
}