Get the protocol used for the response (e.g. HTTP)
Return value
string
File
- drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 231
Class
- Response
- Guzzle HTTP response object
Namespace
Guzzle\Http\Message
Code
public function getProtocol() {
return $this->protocol ?: 'HTTP';
}