3 The http\Url class provides versatile means to parse, construct and manipulate URLs.
9 2.2.0 | Added parser constants:<br> http\Url::PARSE_MBUTF8,<br> http\Url::PARSE_MBLOC (on systems with wide character support),<br>http\Url::PARSE_TOPCT,<br>http\Url::PARSE_TOIDN (with libidn support).
11 ## Backwards compatibility
13 ### New parser in v2.2.0
15 PHP's [parse_url()](http://php.net/parse_url) is avoided since v2.2.0.
17 Creating an empty url by `new http\Url(NULL, NULL, 0)` will not result in `http://localhost/` anymore but in an empty URL instead.
22 Replace parts of the old URL with parts of the new.
24 Whether a relative path should be joined into the old path.
26 Whether the querystrings should be joined.
28 Strip the user information from the URL.
30 Strip the password from the URL.
32 Strip user and password information from URL (same as STRIP_USER|STRIP_PASS).
34 Do not include the port.
36 Do not include the URL path.
38 Do not include the URL querystring.
40 Strip the fragment (hash) from the URL.
42 Strip everything except scheme and host information.
44 Import initial URL parts from the SAPI environment.
46 Whether to sanitize the URL path (consolidate double slashes, directory jumps etc.)
48 Parse UTF-8 encododed multibyte sequences.
50 Parse locale encoded multibyte sequences (on systems with wide character support).
52 Parse and convert multibyte hostnames according to IDNA (with libidn support).
54 Percent encode multibyte sequences in the userinfo, path, query and fragment parts of the URL.
58 * public string $scheme = NULL
60 * public string $user = NULL
62 * public string $pass = NULL
63 Authentication password.
64 * public string $host = NULL
66 * public string $port = NULL
68 * public string $path = NULL
70 * public string $query = NULL
72 * public string $fragment = NULL