library/Garp/Service/Elasticsearch/Request.php
public function execute() {
        $method = constant('Zend_Http_Client::' . $this->getMethod());
        $client = $this->getClient();
        $url    = $this->getUrl();
        $data   = $this->getData();

        $client
            ->setMethod($method)
            ->setUri($url)
        ;

        if ($data) {
            $client->setRawData($data);
        }

        $response = $client->request();

        return new Garp_Service_Elasticsearch_Response($response);
    }
public function execute() {
        $method = constant('Zend_Http_Client::' . $this->getMethod());
        $client = $this->getClient();
        $url    = $this->getUrl();
        $data   = $this->getData();

        $client
            ->setMethod($method)
            ->setUri($url)
        ;

        if ($data) {
            $client->setRawData($data);
        }

        $response = $client->request();

        return new Garp_Service_Elasticsearch_Response($response);
    }
public function execute ( ) { $ method = constant ( 'Zend_Http_Client::' . $ this -> getMethod ( ) ) ; $ client = $ this -> getClient ( ) ; $ url = $ this -> getUrl ( ) ; $ data = $ this -> getData ( ) ; $ client -> setMethod ( $ method ) -> setUri ( $ url ) ; if ( $ data ) { $ client -> setRawData ( $ data ) ; } $ response = $ client -> request ( ) ; return new Garp_Service_Elasticsearch_Response ( $ response ) ; }
Executes the request and returns a response.
@return Garp_Service_Elasticsearch_Response
Executes the request and returns a response .