VCR\Response::getHttpVersion PHP Method

getHttpVersion() public method

public getHttpVersion ( ) : mixed
return mixed
    public function getHttpVersion()
    {
        return $this->httpVersion;
    }

Usage Example

Beispiel #1
0
 /**
  * Returns a HTTP status line from specified response.
  *
  * @param Response $response
  * @return string HTTP status line.
  */
 public static function formatAsStatusString(Response $response)
 {
     return 'HTTP/' . $response->getHttpVersion() . ' ' . $response->getStatusCode() . ' ' . $response->getStatusMessage();
 }