public function Response::setProtocol

Set the protocol and protocol version of the response

Parameters

string $protocol Response protocol:

string $version Protocol version:

Return value

Response

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 218

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function setProtocol($protocol, $version) {
  $this->protocol = $protocol;
  $this->protocolVersion = $version;
  return $this;
}