Elastica\Request::send PHP Method

send() public method

Sends request to server.
public send ( ) : Response
return Response Response object
    public function send()
    {
        $transport = $this->getConnection()->getTransportObject();
        // Refactor: Not full toArray needed in exec?
        return $transport->exec($this, $this->getConnection()->toArray());
    }

Usage Example

コード例 #1
0
ファイル: ConnectionTest.php プロジェクト: fadimko/Elastica
 /**
  * @group unit
  * @expectedException \Elastica\Exception\ConnectionException
  */
 public function testInvalidConnection()
 {
     $connection = new Connection(array('port' => 9999));
     $request = new Request('_stats', Request::GET);
     $request->setConnection($connection);
     // Throws exception because no valid connection
     $request->send();
 }
All Usage Examples Of Elastica\Request::send