lib/mw/ApiRequest.js
function(env) {
	ApiRequest.call(this, env, null);
	this.queueKey = env.conf.wiki.apiURI;
	this.reqType = "Config Request";

	var metas = [ 'siteinfo' ];
	var siprops = [
		'namespaces',
		'namespacealiases',
		'magicwords',
		'functionhooks',
		'extensiontags',
		'general',
		'interwikimap',
		'languages',
		'languagevariants', // T153341
		'protocols',
		'specialpagealiases',
		'defaultoptions',
		'variables',
	];
	var apiargs = {
		format: 'json',
		// XXX: should use formatversion=2
		action: 'query',
		meta: metas.join('|'),
		siprop: siprops.join('|'),
		rawcontinue: 1,
	};

	this.requestOptions = {
		method: 'GET',
		followRedirect: true,
		uri: env.conf.wiki.apiURI,
		qs: apiargs,
		timeout: env.conf.parsoid.timeouts.mwApi.configInfo,
	};

	this.request(this.requestOptions);
}
function(env) {
	ApiRequest.call(this, env, null);
	this.queueKey = env.conf.wiki.apiURI;
	this.reqType = "Config Request";

	var metas = [ 'siteinfo' ];
	var siprops = [
		'namespaces',
		'namespacealiases',
		'magicwords',
		'functionhooks',
		'extensiontags',
		'general',
		'interwikimap',
		'languages',
		'languagevariants', // T153341
		'protocols',
		'specialpagealiases',
		'defaultoptions',
		'variables',
	];
	var apiargs = {
		format: 'json',
		// XXX: should use formatversion=2
		action: 'query',
		meta: metas.join('|'),
		siprop: siprops.join('|'),
		rawcontinue: 1,
	};

	this.requestOptions = {
		method: 'GET',
		followRedirect: true,
		uri: env.conf.wiki.apiURI,
		qs: apiargs,
		timeout: env.conf.parsoid.timeouts.mwApi.configInfo,
	};

	this.request(this.requestOptions);
}
function ( env ) { ApiRequest . call ( this , env , null ) ; this . queueKey = env . conf . wiki . apiURI ; this . reqType = "Config Request" ; var metas = [ 'siteinfo' ] ; var siprops = [ 'namespaces' , 'namespacealiases' , 'magicwords' , 'functionhooks' , 'extensiontags' , 'general' , 'interwikimap' , 'languages' , 'languagevariants' , // T153341 'protocols' , 'specialpagealiases' , 'defaultoptions' , 'variables' , ] ; var apiargs = { format : 'json' , // XXX: should use formatversion=2 action : 'query' , meta : metas . join ( '|' ) , siprop : siprops . join ( '|' ) , rawcontinue : 1 , } ; this . requestOptions = { method : 'GET' , followRedirect : true , uri : env . conf . wiki . apiURI , qs : apiargs , timeout : env . conf . parsoid . timeouts . mwApi . configInfo , } ; this . request ( this . requestOptions ) ; }
A request for the wiki's configuration variables.

@class
@extends ~ApiRequest
@param {MWParserEnvironment} env
A request for the wiki s configuration variables .