protected function Subscriber::_getHttpClient in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php \Zend\Feed\PubSubHubbub\Subscriber::_getHttpClient()
Get a basic prepared HTTP client for use
Return value
\Zend\Http\Client
1 call to Subscriber::_getHttpClient()
- Subscriber::_doRequest in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php - Executes an (un)subscribe request
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php, line 651
Class
Namespace
Zend\Feed\PubSubHubbubCode
protected function _getHttpClient() {
$client = PubSubHubbub::getHttpClient();
$client
->setMethod(HttpRequest::METHOD_POST);
$client
->setOptions([
'useragent' => 'Zend_Feed_Pubsubhubbub_Subscriber/' . Version::VERSION,
]);
return $client;
}