Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4093341
ImgAuthModifyHeadersHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
927 B
Referenced Files
None
Subscribers
None
ImgAuthModifyHeadersHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\Linker\LinkTarget
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ImgAuthModifyHeaders" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ImgAuthModifyHeadersHook
{
/**
* This hook is called just before a file is streamed to a user via
* img_auth.php, allowing headers to be modified beforehand.
*
* @since 1.35
*
* @param LinkTarget $title
* @param 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.
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onImgAuthModifyHeaders
(
$title
,
&
$headers
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 12:45 (4 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
03/49/4a6d2676be5ee229ec3478b6aaa2
Default Alt Text
ImgAuthModifyHeadersHook.php (927 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment