lib/public/AppFramework/Http/StreamResponse.php
/**
	 * Streams the file using readfile
	 *
	 * @param IOutput $output a small wrapper that handles output
	 * @since 8.1.0
	 */
Streams the file using readfile
@param IOutput $output a small wrapper that handles output
@since 8.1.0
Streams the file using readfile @param IOutput $output a small wrapper that handles output @since 8 . 1 . 0
public function callback (IOutput $output) {
		if ($output->getHttpResponseCode() !== Http::STATUS_NOT_MODIFIED) {
			if (!(is_resource($this->filePath) || file_exists($this->filePath))) {
				$output->setHttpResponseCode(Http::STATUS_NOT_FOUND);
			} elseif ($output->setReadfile($this->filePath) === false) {
				$output->setHttpResponseCode(Http::STATUS_BAD_REQUEST);
			}
		}
	}
public function callback ( IOutput $ output ) { if ( $ output -> getHttpResponseCode ( ) !== Http :: STATUS_NOT_MODIFIED ) { if ( ! ( is_resource ( $ this -> filePath ) || file_exists ( $ this -> filePath ) ) ) { $ output -> setHttpResponseCode ( Http :: STATUS_NOT_FOUND ) ; } elseif ( $ output -> setReadfile ( $ this -> filePath ) === false ) { $ output -> setHttpResponseCode ( Http :: STATUS_BAD_REQUEST ) ; } } }
Streams the file using readfile
 @param IOutput $output a small wrapper that handles output
 @since 8.1.0
Streams the file using readfile @param IOutput $output a small wrapper that handles output @since 8 . 1 . 0
// handle caching