$scheme
$scheme :
Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.
$query : \Guzzle\Http\QueryString
factory(string $url) : \Guzzle\Http\Url
Factory method to create a new URL from a URL string
string | $url | Full URL used to create a Url object |
__construct(string $scheme, string $host, string $username = null, string $password = null, integer $port = null, string $path = null, \Guzzle\Http\QueryString|array|string $query = null, string $fragment = null)
Create a new URL from URL parts
string | $scheme | Scheme of the URL |
string | $host | Host of the URL |
string | $username | Username of the URL |
string | $password | Password of the URL |
integer | $port | Port of the URL |
string | $path | Path of the URL |
\Guzzle\Http\QueryString|array|string | $query | Query string of the URL |
string | $fragment | Fragment of the URL |
setHost(string $host) : \Guzzle\Http\Url
Set the host of the request.
string | $host | Host to set (e.g. www.yahoo.com, yahoo.com) |
setScheme(string $scheme) : \Guzzle\Http\Url
Set the scheme part of the URL (http, https, ftp, etc)
string | $scheme | Scheme to set |
setPort(integer $port) : \Guzzle\Http\Url
Set the port part of the URL
integer | $port | Port to set |
setPath(array|string $path) : \Guzzle\Http\Url
Set the path part of the URL
array|string | $path | Path string or array of path segments |
normalizePath() : \Guzzle\Http\Url
Normalize the URL so that double slashes and relative paths are removed
addPath(string $relativePath) : \Guzzle\Http\Url
Add a relative path to the currently set path.
string | $relativePath | Relative path to add |
setPassword(string $password) : \Guzzle\Http\Url
Set the password part of the URL
string | $password | Password to set |
setUsername(string $username) : \Guzzle\Http\Url
Set the username part of the URL
string | $username | Username to set |
getQuery() : \Guzzle\Http\QueryString
Get the query part of the URL as a QueryString object
setQuery(\Guzzle\Http\QueryString|string|array $query) : \Guzzle\Http\Url
Set the query part of the URL
\Guzzle\Http\QueryString|string|array | $query | Query to set |
setFragment(string $fragment) : \Guzzle\Http\Url
Set the fragment part of the URL
string | $fragment | Fragment to set |
combine(string $url, boolean $strictRfc3986 = false) : \Guzzle\Http\Url
Combine the URL with another URL. Follows the rules specific in RFC 3986 section 5.4.
string | $url | Relative URL to combine with |
boolean | $strictRfc3986 | Set to true to use strict RFC 3986 compliance when merging paths. When first released, Guzzle used an incorrect algorithm for combining relative URL paths. In order to not break users, we introduced this flag to allow the merging of URLs based on strict RFC 3986 section 5.4.1. This means that "http://a.com/foo/baz" merged with "bar" would become "http://a.com/foo/bar". When this value is set to false, it would become "http://a.com/foo/baz/bar". |
addQuery(\Guzzle\Http\QueryString $new, $strictRfc386)
\Guzzle\Http\QueryString | $new | |
$strictRfc386 |