Your IP : 216.73.216.54


Current Path : /var/www/html/mediawiki-1.43.1/includes/Hook/
Upload File :
Current File : /var/www/html/mediawiki-1.43.1/includes/Hook/ImgAuthModifyHeadersHook.php

<?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 );
}