class Url

Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.

Hierarchy

  • class \Guzzle\Http\Url

Expanded class hierarchy of Url

6 files declare their use of Url

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php, line 11

Namespace

Guzzle\Http
View source

Members

Namesort descending Modifiers Type Description Overrides
Url::$fragment protected property
Url::$host protected property
Url::$password protected property
Url::$path protected property
Url::$port protected property
Url::$query protected property
Url::$scheme protected property
Url::$username protected property
Url::addPath public function Add a relative path to the currently set path
Url::buildUrl public static function Build a URL from parse_url parts. The generated URL will be a relative URL if a scheme or host are not provided.
Url::combine public function Combine the URL with another URL. Parts specified in the passed URL will supersede parts in the current URL.
Url::factory public static function Factory method to create a new URL from a URL string
Url::getFragment public function Get the fragment part of the URL
Url::getHost public function Get the host part of the URL
Url::getParts public function Get the parts of the URL as an array
Url::getPassword public function Get the password part of the URL
Url::getPath public function Get the path part of the URL
Url::getPathSegments public function Get the path segments of the URL as an array
Url::getPort public function Get the port part of the URl. Will return the default port for a given scheme if no port has been set.
Url::getQuery public function Get the query part of the URL as a QueryString object
Url::getScheme public function Get the scheme part of the URL
Url::getUsername public function Get the username part of the URl
Url::isAbsolute public function Check if this is an absolute URL
Url::normalizePath public function Normalize the URL so that double slashes and relative paths are removed
Url::setFragment public function Set the fragment part of the URL
Url::setHost public function Set the host of the request.
Url::setPassword public function Set the password part of the URL
Url::setPath public function Set the path part of the URL
Url::setPort public function Set the port part of the URL
Url::setQuery public function Set the query part of the URL
Url::setScheme public function Set the scheme part of the URL (http, https, ftp, etc)
Url::setUsername public function Set the username part of the URL
Url::__clone public function Clone the URL
Url::__construct public function Create a new URL from URL parts
Url::__toString public function Returns the URL as a URL string