PHP Class 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.
Afficher le fichier
Open project: ScriptFUSION/Porter
Class Usage Examples
Méthodes publiques
Private Methods
Method Details
__construct()
public méthode
public __construct ( HttpOptions $options = null ) |
$options |
HttpOptions |
|
fetchFreshData()
public méthode
public fetchFreshData ( string $source, EncapsulatedOptions $options = null ) : string |
$source |
string |
Source. |
$options |
ScriptFUSION\Porter\Options\EncapsulatedOptions |
Optional. Options. |
Résultat |
string |
Response. |
getBaseUrl()
public méthode
getTries()
public méthode
Gets the maximum number of fetch attempts
setBaseUrl()
public méthode
setTries()
public méthode
Sets the maximum number of fetch attempts.