lib/Elastica/Client.php
public function requestEndpoint(AbstractEndpoint $endpoint)
    {
        return $this->request(
            \ltrim($endpoint->getURI(), '/'),
            $endpoint->getMethod(),
            null === $endpoint->getBody() ? [] : $endpoint->getBody(),
            $endpoint->getParams()
        );
    }
public function requestEndpoint(AbstractEndpoint $endpoint)
    {
        return $this->request(
            \ltrim($endpoint->getURI(), '/'),
            $endpoint->getMethod(),
            null === $endpoint->getBody() ? [] : $endpoint->getBody(),
            $endpoint->getParams()
        );
    }
public function requestEndpoint ( AbstractEndpoint $ endpoint ) { return $ this -> request ( \ ltrim ( $ endpoint -> getURI ( ) , '/' ) , $ endpoint -> getMethod ( ) , null === $ endpoint -> getBody ( ) ? [ ] : $ endpoint -> getBody ( ) , $ endpoint -> getParams ( ) ) ; }
Makes calls to the elasticsearch server with usage official client Endpoint.

@param AbstractEndpoint $endpoint

@return Response
Makes calls to the elasticsearch server with usage official client Endpoint .