Skip to content

Kirby 5.0.4

$file->header()

Sends an appropriate header for the asset

$file->header(bool $send = true): Kirby\Http\Response|null

Parameters

Name Type Default
$send bool true

Return types

Kirby\Http\Responseornull

This method modifies the existing $file object it is applied to and returns it again.

Parent class

Kirby\Filesystem\File