Skip to main content

Module url

Module url 

Source
Expand description

parse_url and the PHP 8.5 URI extension (Uri\Rfc3986\Uri).

PHPRust
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\Uri from the PHP 8.5 URI extension.

Structs§

Url
A URL split by PHP’s parse_url (php_url_parse_ex2 in ext/standard/url.c).

Enums§

Component
A PHP_URL_* selector for parse_url($url, $component).
ComponentValue
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): None where PHP returns false (a malformed URL, such as an invalid port or an empty host after //).