PHP Класс ScriptFUSION\Porter\Net\Http\HttpConnector
Enhanced error reporting is achieved by ignoring HTTP error codes in the wrapper, instead throwing
HttpServerException which includes the body of the response in the error message.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Приватные методы
Описание методов
__construct()
публичный Метод
public __construct ( HttpOptions $options = null ) |
$options |
HttpOptions |
|
fetchFreshData()
публичный Метод
public fetchFreshData ( string $source, EncapsulatedOptions $options = null ) : string |
$source |
string |
Source. |
$options |
ScriptFUSION\Porter\Options\EncapsulatedOptions |
Optional. Options. |
Результат |
string |
Response. |
getBaseUrl()
публичный Метод
getTries()
публичный Метод
Gets the maximum number of fetch attempts
setBaseUrl()
публичный Метод
setTries()
публичный Метод
Sets the maximum number of fetch attempts.