You are here

public static function PubSubHubbub::getHttpClient in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/PubSubHubbub.php \Zend\Feed\PubSubHubbub\PubSubHubbub::getHttpClient()

Return the singleton instance of the HTTP Client. Note that the instance is reset and cleared of previous parameters GET/POST. Headers are NOT reset but handled by this component if applicable.

Return value

Http\Client

2 calls to PubSubHubbub::getHttpClient()
Publisher::_getHttpClient in vendor/zendframework/zend-feed/src/PubSubHubbub/Publisher.php
Get a basic prepared HTTP client for use
Subscriber::_getHttpClient in vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php
Get a basic prepared HTTP client for use

File

vendor/zendframework/zend-feed/src/PubSubHubbub/PubSubHubbub.php, line 86

Class

PubSubHubbub

Namespace

Zend\Feed\PubSubHubbub

Code

public static function getHttpClient() {
  if (!isset(static::$httpClient)) {
    static::$httpClient = new Http\Client();
  }
  else {
    static::$httpClient
      ->resetParameters();
  }
  return static::$httpClient;
}