public function Request::getUrl

Get the full URL of the request (e.g. 'http://www.guzzle-project.com/') scheme://username:password@domain:port/path?query_string#fragment

Parameters

bool $asObject Set to TRUE to retrieve the URL as a clone of the URL object owned by the request.:

Return value

string|Url

Overrides RequestInterface::getUrl

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php, line 443

Class

Request
HTTP request class to send requests

Namespace

Guzzle\Http\Message

Code

public function getUrl($asObject = false) {
  return $asObject ? clone $this->url : (string) $this->url;
}