public function Client::get

Create a GET request for the client

Parameters

string|array $uri Resource URI:

array|Collection $headers HTTP headers:

string|resource|array|EntityBodyInterface $body Where to store the response entity body:

Return value

RequestInterface

Overrides ClientInterface::get

See also

Guzzle\Http\ClientInterface::createRequest()

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php, line 303

Class

Client
HTTP client

Namespace

Guzzle\Http

Code

public function get($uri = null, $headers = null, $body = null) {
  return $this
    ->createRequest('GET', $uri, $headers, $body);
}