public function SolrConnectorInterface::serverRestPost in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::serverRestPost()
- 8 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::serverRestPost()
- 8.2 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::serverRestPost()
Sends a REST POST request to the Solr server and returns the result.
Parameters
string $path: The path to append to the base URI.
string $command_json: The command to send encoded as JSON.
Return value
string The decoded response.
Throws
\Drupal\search_api_solr\SearchApiSolrException
1 method overrides SolrConnectorInterface::serverRestPost()
- SolrConnectorPluginBase::serverRestPost in src/
SolrConnector/ SolrConnectorPluginBase.php - Sends a REST POST request to the Solr server and returns the result.
File
- src/
SolrConnectorInterface.php, line 300
Class
- SolrConnectorInterface
- The Solr connector interface.
Namespace
Drupal\search_api_solrCode
public function serverRestPost($path, $command_json = '');