Expand description
parse_url and the PHP 8.5 URI extension (Uri\Rfc3986\Uri).
| PHP | Rust |
|---|---|
parse_url($url) | parse_url → Url |
parse_url($url, PHP_URL_*) | parse_url + Url::component (Component) |
Uri\Rfc3986\Uri::parse($uri) | rfc3986::Uri::parse |
Uri\WhatWg\Url is not reimplemented: no Utopia library uses it.
Modules§
- rfc3986
Uri\Rfc3986\Urifrom the PHP 8.5 URI extension.
Structs§
- Url
- A URL split by PHP’s
parse_url(php_url_parse_ex2inext/standard/url.c).
Enums§
- Component
- A
PHP_URL_*selector forparse_url($url, $component). - Component
Value - The value
parse_url($url, $component)returns for a component that is present: a string, or an integer for the port.
Functions§
- parse_
url - PHP
parse_url($url):Nonewhere PHP returnsfalse(a malformed URL, such as an invalid port or an empty host after//).