MediaWiki master
MediaWiki\Request\HeaderCallback Class Reference

Static Public Member Functions

static callback ()
 The callback, which is called by the transport.
 
static register ()
 Register a callback to be called when headers are sent.
 
static sanitizeSetCookie (array $values)
 Sanitize Set-Cookie headers for logging.
 
static warnIfHeadersSent ()
 Log a warning message if headers have already been sent.
 

Detailed Description

Since
1.29

Definition at line 11 of file HeaderCallback.php.

Member Function Documentation

◆ callback()

static MediaWiki\Request\HeaderCallback::callback ( )
static

The callback, which is called by the transport.

Since
1.29

Definition at line 39 of file HeaderCallback.php.

References $header, and MediaWiki\Request\WebRequest\getGlobalRequestURL().

◆ register()

static MediaWiki\Request\HeaderCallback::register ( )
static

Register a callback to be called when headers are sent.

There can only be one of these handlers active, so all relevant actions have to be in here.

Since
1.29

Definition at line 22 of file HeaderCallback.php.

◆ sanitizeSetCookie()

static MediaWiki\Request\HeaderCallback::sanitizeSetCookie ( array $values)
static

Sanitize Set-Cookie headers for logging.

Parameters
array$valuesList of header values.
Returns
string

Definition at line 108 of file HeaderCallback.php.

◆ warnIfHeadersSent()

static MediaWiki\Request\HeaderCallback::warnIfHeadersSent ( )
static

Log a warning message if headers have already been sent.

This can be called before flushing the output.

Since
1.29

Definition at line 90 of file HeaderCallback.php.

References wfGetCaller().

Referenced by MediaWiki\FileRepo\ThumbnailEntryPoint\thumbError().


The documentation for this class was generated from the following file: