mini\Http\Message\Uri::buildUriString() Method

protected static

Signature

protected static function buildUriString(array $parsed): string

Parameters

Name Type Default Description
$parsed array required Documentation missing

Returns

string

Documentation

Builds a complete URL from a parsed URL, according to parse_url().

Per PSR-7 UriInterface, scheme and host are optional and can be empty strings. This method constructs URIs that can be:

  • Full URIs: scheme://host/path
  • Protocol-relative: //host/path
  • Absolute paths: /path
  • Relative paths: path

Source

src/Http/Message/UriTrait.php:481-528