Change-Id: I799ea1e647d4d67a3c7d0e8dfddff893aef32736
* timeout longer than the default $wgHTTPTimeout. False means fallback
* to default.
*
+ * @var int|bool
+ *
* @since 1.22
*/
$wgCopyUploadTimeout = false;
/**
* Timeout for HTTP requests done internally, in seconds.
+ * @var int
*/
$wgHTTPTimeout = 25;
class MWHttpRequest implements LoggerAwareInterface {
const SUPPORTS_FILE_POSTS = false;
- protected $content;
+ /**
+ * @var int|string
+ */
protected $timeout = 'default';
+
+ protected $content;
protected $headersOnly = null;
protected $postData = null;
protected $proxy = null;