Zend\Uri\Uri::setScheme
Set the URI scheme
If the scheme is not valid according to the generic scheme syntax or is not acceptable by the specific URI class (e.g. 'http' or 'https' are the only acceptable schemes for the Zend\Uri\Http class) an exception will be thrown. You can check if a scheme is valid before setting it using the validateScheme() method.
Signature
public function setScheme(string
$scheme )
Parameters
$scheme
— string
Returns
- Uri