HEAD
HEAD
Elastica Request object.
This function can be used to handle params for queries, filter
$_connection : \Elastica\Connection
__construct(string $path, string $method = self::GET, array $data = array(), array $query = array(), \Elastica\Connection $connection = null) : \Elastica\Request
Construct.
string | $path | Request path |
string | $method | OPTIONAL Request method (use const's) (default = self::GET) |
array | $data | OPTIONAL Data array |
array | $query | OPTIONAL Query params |
\Elastica\Connection | $connection |
OPTIONAL Connection object
setConnection(\Elastica\Connection $connection) : $this
\Elastica\Connection | $connection |
getConnection() : \Elastica\Connection
Return Connection Object.
If no valid connection was setted
send() : \Elastica\Response
Sends request to server.
Response object