Elastica\Response::getTransferInfo PHP Method

getTransferInfo() public method

Gets the transfer information.
public getTransferInfo ( ) : array
return array Information about the curl request.
    public function getTransferInfo()
    {
        return $this->_transferInfo;
    }

Usage Example

Example #1
0
 protected function requestAuthority(Elastica\Response $response = NULL)
 {
     if ($response) {
         $info = $response->getTransferInfo();
         $url = new Nette\Http\Url($info['url']);
     } else {
         $url = new Nette\Http\Url(key($this->queries) ?: 'http://localhost:9200/');
     }
     return $url->hostUrl;
 }