MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onImgAuthModifyHeaders ( $title, &$headers) | |
This hook is called just before a file is streamed to a user via img_auth.php, allowing headers to be modified beforehand. | |
Stable to implement.
Definition at line 11 of file ImgAuthModifyHeadersHook.php.
MediaWiki\Hook\ImgAuthModifyHeadersHook::onImgAuthModifyHeaders | ( | $title, | |
& | $headers | ||
) |
This hook is called just before a file is streamed to a user via img_auth.php, allowing headers to be modified beforehand.
LinkTarget | $title | |
string[] | &$headers | HTTP headers ( name => value, names are case insensitive ). Two headers get special handling: If-Modified-Since (value must be a valid HTTP date) and Range (must be of the form "bytes=(\\d*-\\d*)") will be honored when streaming the file. |
Implemented in MediaWiki\HookContainer\HookRunner.