public static function Reader::getHttpClient in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Reader.php \Zend\Feed\Reader\Reader::getHttpClient()
Gets the HTTP client object. If none is set, a new ZendHttp\Client will be used.
Return value
ZendHttp\Client
2 calls to Reader::getHttpClient()
- Reader::findFeedLinks in vendor/
zendframework/ zend-feed/ src/ Reader/ Reader.php - Find feed links
- Reader::import in vendor/
zendframework/ zend-feed/ src/ Reader/ Reader.php - Import a feed by providing a URI
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Reader.php, line 133
Class
Namespace
Zend\Feed\ReaderCode
public static function getHttpClient() {
if (!static::$httpClient instanceof ZendHttp\Client) {
static::$httpClient = new ZendHttp\Client();
}
return static::$httpClient;
}