request() public method

Returns the result from the remote server.
public request ( string $method, string $path, Message $message = null ) : Message
$method string
$path string
$message Message
return Message
Example #1
0
 /**
  * Flushes data from memory to the index storage.
  */
 public function flush()
 {
     $this->client->request("POST", "/_flush?full=false&force=false");
 }
Example #2
0
 /**
  * Flushes data from memory to the index storage.
  */
 public function flush()
 {
     $this->client->request('POST', '/_flush?full=false&force=false');
 }