public function RequestInterface::setHost

Set the host of the request. Including a port in the host will modify the port of the request.

Parameters

string $host Host to set (e.g. www.yahoo.com, www.yahoo.com:80):

Return value

RequestInterface

1 method overrides RequestInterface::setHost()
Request::setHost in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Set the host of the request. Including a port in the host will modify the port of the request.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/RequestInterface.php, line 130

Class

RequestInterface
Generic HTTP request interface

Namespace

Guzzle\Http\Message

Code

public function setHost($host);