public function Url::setScheme

Set the scheme part of the URL (http, https, ftp, etc)

Parameters

string $scheme Scheme to set:

Return value

Url

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php, line 211

Class

Url
Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.

Namespace

Guzzle\Http

Code

public function setScheme($scheme) {
  $this->scheme = $scheme;
  return $this;
}