You are here

protected function Subscriber::_getHttpClient in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

Subscriber

Namespace

Zend\Feed\PubSubHubbub

Code

protected function _getHttpClient() {
  $client = PubSubHubbub::getHttpClient();
  $client
    ->setMethod(HttpRequest::METHOD_POST);
  $client
    ->setOptions([
    'useragent' => 'Zend_Feed_Pubsubhubbub_Subscriber/' . Version::VERSION,
  ]);
  return $client;
}