MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. 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. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "ImgAuthModifyHeaders" to register handlers implementing this interface.
Definition at line 14 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.