MediaWiki
1.34.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 8 of file HeaderCallback.php.
|
static |
The callback, which is called by the transport.
Definition at line 28 of file HeaderCallback.php.
References $header, WebRequest\getGlobalRequestURL(), and MediaWiki\Logger\LoggerFactory\getInstance().
|
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 19 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 70 of file HeaderCallback.php.
References MediaWiki\Logger\LoggerFactory\getInstance(), MWDebug\warning(), and wfGetCaller().
Referenced by WebResponse\header(), HttpStatus\header(), wfHttpError(), wfProxyThumbnailRequest(), and wfThumbError().
|
staticprivate |
Definition at line 9 of file HeaderCallback.php.
|
staticprivate |
Definition at line 10 of file HeaderCallback.php.