MediaWiki REL1_32
|
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 33 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 78 of file HttpRequestFactory.php.
References 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 44 of file HttpRequestFactory.php.
References Http\$httpEngine, $options, Profiler\instance(), and wfIniGetBool().