getHttp() public method

Get the instance of Guzzle used to send the message.
public getHttp ( ) : Guzzle\Http\ClientInterface
return Guzzle\Http\ClientInterface
コード例 #1
0
ファイル: GuzzleBasicTest.php プロジェクト: rcrowe/hippy
 public function testSetHttp()
 {
     $guzzle = new Guzzle(null, null, null);
     $guzzle->setHttp(new Http('https://api.cogpowered.com/v1/'));
     $this->assertEquals($guzzle->getHttp()->getBaseUrl(), 'https://api.cogpowered.com/v1/');
 }