public function Client::request in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::request()
- 8 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::request()
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::request()
Create and send an HTTP request.
Use an absolute path to override the base path of the client, or a relative path to append to the base path of the client. The URL can contain the query string as well.
Parameters
string $method HTTP method:
string|UriInterface $uri URI object or string.:
array $options Request options to apply.:
Return value
Throws
GuzzleException
Overrides ClientInterface::request
1 call to Client::request()
- Client::__call in vendor/
guzzlehttp/ guzzle/ src/ Client.php
File
- vendor/
guzzlehttp/ guzzle/ src/ Client.php, line 126
Class
- Client
- @method ResponseInterface get($uri, array $options = []) @method ResponseInterface head($uri, array $options = []) @method ResponseInterface put($uri, array $options = []) @method ResponseInterface post($uri, array $options = []) @method…
Namespace
GuzzleHttpCode
public function request($method, $uri = null, array $options = []) {
$options[RequestOptions::SYNCHRONOUS] = true;
return $this
->requestAsync($method, $uri, $options)
->wait();
}