PHP Class Elastica\Transport\Http

Author: Nicolas Ruflin ([email protected])
Inheritance: extends AbstractTransport
Show file Open project: ruflin/elastica

Protected Properties

Property Type Description
$_curlConnection Curl resource to reuse.
$_scheme Http scheme.

Public Methods

Method Description
exec ( Request $request, array $params ) : Response Makes calls to the elasticsearch server.

Protected Methods

Method Description
_getConnection ( boolean $persistent = true ) : resource Return Curl resource.
_setupCurl ( resource $curlConnection ) Called to add additional curl params.

Method Details

_getConnection() protected method

Return Curl resource.
protected _getConnection ( boolean $persistent = true ) : resource
$persistent boolean False if not persistent connection
return resource Connection resource

_setupCurl() protected method

Called to add additional curl params.
protected _setupCurl ( resource $curlConnection )
$curlConnection resource Curl connection

exec() public method

All calls that are made to the server are done through this function
public exec ( Request $request, array $params ) : Response
$request Elastica\Request
$params array Host, Port, ...
return Elastica\Response Response object

Property Details

$_curlConnection protected static property

Curl resource to reuse.
protected static $_curlConnection

$_scheme protected property

Http scheme.
protected $_scheme