-# class http\Url extends http\Object
+# class http\Url
The http\Url class provides versatile means to parse, construct and manipulate URLs.
Do not include the URL path.
* STRIP_QUERY
Do not include the URL querystring.
-* STRIP_FRAMGENT
+* STRIP_FRAGMENT
Strip the fragment (hash) from the URL.
* STRIP_ALL
Strip everything except scheme and host information.
Import initial URL parts from the SAPI environment.
* SANITIZE_PATH
Whether to sanitize the URL path (consolidate double slashes, directory jumps etc.)
-
+* PARSE_MBUTF8
+ Parse UTF-8 encoded multibyte sequences.
+* PARSE_MBLOC
+ Parse locale encoded multibyte sequences (on systems with wide character support).
+* PARSE_TOIDN
+ Parse and convert multibyte hostnames according to IDNA (with IDNA support).
+* PARSE_TOIDN_2003
+ Explicitly request IDNA2003 implementation if available (libidn, idnkit or ICU).
+* PARSE_TOIDN_2008
+ Explicitly request IDNA2008 implementation if available (libidn2, idnkit2 or ICU).
+* PARSE_TOPCT
+ Percent encode multibyte sequences in the userinfo, path, query and fragment parts of the URL.
+* IGNORE_ERRORS
+ Continue parsing when encountering errors.
+* SILENT_ERRORS
+ Suppress errors/exceptions.
+* STDFLAGS
+ Standard flags used by default internally for e.g. http\Message::setRequestUrl().
+ Enables joining path and query, sanitizing path, multibyte/unicode, international domain names and transient percent encoding.
## Properties:
-* public $scheme = NULL
+* public string $scheme = NULL
The URL's scheme.
-* public $user = NULL
+* public string $user = NULL
Authenticating user.
-* public $pass = NULL
+* public string $pass = NULL
Authentication password.
-* public $host = NULL
+* public string $host = NULL
Hostname/domain.
-* public $port = NULL
+* public string $port = NULL
Port.
-* public $path = NULL
+* public string $path = NULL
URL path.
-* public $query = NULL
+* public string $query = NULL
URL querystring.
-* public $fragment = NULL
+* public string $fragment = NULL
URL fragment (hash).