Doctrine\OrientDB\Binding\Client\Http\CurlClientResponse::getProtocol PHP Method

getProtocol() public method

Returns the protocol used to communicate with the client.
public getProtocol ( ) : string
return string
    public function getProtocol()
    {
        return $this->protocol;
    }

Usage Example

 public function testRetrievingTheProtocol()
 {
     $response = new CurlClientResponse("HTTP/1.1 200 OK\r\nCache-Control: max-age=30\r\nCache-Control: s-maxage=50\r\n\r\n");
     $this->assertEquals("HTTP/1.1", $response->getProtocol());
 }