MediaWiki master
|
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. | |
Definition at line 11 of file HeaderCallback.php.
|
static |
The callback, which is called by the transport.
Definition at line 41 of file HeaderCallback.php.
References $header, and MediaWiki\Request\WebRequest\getGlobalRequestURL().
|
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 24 of file HeaderCallback.php.
|
static |
Sanitize Set-Cookie headers for logging.
array | $values | List of header values. |
Definition at line 110 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 92 of file HeaderCallback.php.
References wfGetCaller().
Referenced by MediaWiki\FileRepo\ThumbnailEntryPoint\thumbError().