62 abstract public function outItem( $item );
85 # We take over from $wgOut, excepting its cache header info
87 $mimetype = $this->contentType();
88 header(
"Content-type: $mimetype; charset=UTF-8" );
95 $ext = $mimeAnalyzer->getExtensionFromMimeTypeOrNull( $mimetype ) ??
'xml';
96 header(
"Content-Disposition: inline; filename=\"feed.{$ext}\"" );
99 $wgOut->addVaryHeader(
'X-Forwarded-Proto' );
101 $wgOut->sendCacheControl();
111 private function contentType() {
118 'application/rss+xml',
119 'application/atom+xml'
122 return ( in_array(
$ctype, $allowedctypes ) ?
$ctype :
'application/xml' );
130 echo
'<?xml version="1.0"?>' .
"\n";
if(MW_ENTRY_POINT==='index') if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
A class containing constants representing the names of configuration variables.
const VaryOnXFP
Name constant for the VaryOnXFP setting, for use with Config::get()