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.
Show file
Open project: ScriptFUSION/Porter
Class Usage Examples
Public Methods
Private Methods
Method Details
__construct()
public method
public __construct ( HttpOptions $options = null ) |
$options |
HttpOptions |
|
fetchFreshData()
public method
public fetchFreshData ( string $source, EncapsulatedOptions $options = null ) : string |
$source |
string |
Source. |
$options |
ScriptFUSION\Porter\Options\EncapsulatedOptions |
Optional. Options. |
return |
string |
Response. |
getBaseUrl()
public method
Gets the maximum number of fetch attempts
setBaseUrl()
public method
Sets the maximum number of fetch attempts.