MediaWiki REL1_39
MediaWiki\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 8 of file HeaderCallback.php.

Member Function Documentation

◆ callback()

static MediaWiki\HeaderCallback::callback ( )
static

The callback, which is called by the transport.

Since
1.29

Definition at line 35 of file HeaderCallback.php.

References $header.

◆ register()

static MediaWiki\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 19 of file HeaderCallback.php.

◆ sanitizeSetCookie()

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

Sanitize Set-Cookie headers for logging.

Parameters
array$valuesList of header values.
Returns
string

Definition at line 101 of file HeaderCallback.php.

◆ warnIfHeadersSent()

static MediaWiki\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 83 of file HeaderCallback.php.

References wfGetCaller().


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