MediaWiki REL1_33
|
Factory creating MWHttpRequest objects. More...
Public Member Functions | |
canMakeRequests () | |
Simple function to test if we can make any sort of requests at all, using cURL or fopen() | |
create ( $url, array $options=[], $caller=__METHOD__) | |
Generate a new MWHttpRequest object. | |
Factory creating MWHttpRequest objects.
Definition at line 34 of file HttpRequestFactory.php.
MediaWiki\Http\HttpRequestFactory::canMakeRequests | ( | ) |
Simple function to test if we can make any sort of requests at all, using cURL or fopen()
Definition at line 81 of file HttpRequestFactory.php.
References and(), and wfIniGetBool().
MediaWiki\Http\HttpRequestFactory::create | ( | $url, | |
array | $options = [], | ||
$caller = __METHOD__ ) |
Generate a new MWHttpRequest object.
string | $url | Url to use |
array | $options | (optional) extra params to pass (see Http::request()) |
string | $caller | The method making this request, for profiling |
DomainException |
Definition at line 45 of file HttpRequestFactory.php.
References Http\$httpEngine, $options, and(), Profiler\instance(), and wfIniGetBool().