MediaWiki
1.33.0
|
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() More... | |
create ( $url, array $options=[], $caller=__METHOD__) | |
Generate a new MWHttpRequest object. More... | |
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 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, MediaWiki\Logger\LoggerFactory\getInstance(), Profiler\instance(), and wfIniGetBool().