Get the full URL of the request (e.g. 'http://www.guzzle-project.com/') scheme://username:password@domain:port/path?query_string#fragment
bool $asObject Set to TRUE to retrieve the URL as a clone of the URL object owned by the request.:
string|Url
Overrides RequestInterface::getUrl
public function getUrl($asObject = false) {
return $asObject ? clone $this->url : (string) $this->url;
}