MediaWiki
1.30.0
|
Static Public Member Functions | |
static | callback () |
The callback, which is called by the transport. More... | |
static | register () |
Register a callback to be called when headers are sent. More... | |
static | warnIfHeadersSent () |
Log a warning message if headers have already been sent. More... | |
Static Private Attributes | |
static | $headersSentException |
static | $messageSent = false |
Definition at line 5 of file HeaderCallback.php.
|
static |
The callback, which is called by the transport.
Definition at line 21 of file HeaderCallback.php.
References $header, $name, $value, as, WebRequest\getGlobalRequestURL(), MediaWiki\Logger\LoggerFactory\getInstance(), and list.
|
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.
Definition at line 14 of file HeaderCallback.php.
|
static |
Log a warning message if headers have already been sent.
This can be called before flushing the output.
Definition at line 57 of file HeaderCallback.php.
References MediaWiki\Logger\LoggerFactory\getInstance(), MWDebug\warning(), and wfGetCaller().
Referenced by WebResponse\header(), and HttpStatus\header().
|
staticprivate |
Definition at line 6 of file HeaderCallback.php.
|
staticprivate |
Definition at line 7 of file HeaderCallback.php.