public function setURI(?string
$uri = null
) { if ($uri !== null
) { $parts =
parse_url($uri);
if ($parts === false
) { if ($this->silent
) { return $this;
} throw HTTPException::
forUnableToParseURI($uri);
} $this->
applyParts($parts);
} return $this;
} /**
* Retrieve the scheme component of the URI.
*
* If no scheme is present, this method MUST return an empty string.
*
* The value returned MUST be normalized to lowercase, per RFC 3986
* Section 3.1.
*
* The trailing ":" character is not part of the scheme and MUST NOT be
* added.
*
* @see https://tools.ietf.org/html/rfc3986#section-3.1
*
* @return string The URI scheme.
*/