protected function Client::sendRequest in Little helpers 7
Same name and namespace in other branches
- 7.2 src/Rest/Client.php \Drupal\little_helpers\Rest\Client::sendRequest()
Call Having this in it's own method is useful for testing and extensibility.
Parameters
string $url: The URL.
array $options: Options for drupal_http_request().
Return value
object Result object as returned by drupal_http_request().
See also
1 call to Client::sendRequest()
- Client::send in src/
Rest/ Client.php - This method does the actual hard-work in this class.
File
- src/
Rest/ Client.php, line 147
Class
- Client
- This a simple JSON REST Client based on drupal_http_request().
Namespace
Drupal\little_helpers\RestCode
protected function sendRequest($url, array $options) {
return drupal_http_request($url, $options);
}