header::create($key, $value = null)
Creates headers by key and value
- since: Kirby 2.5.0
-
$key (string/array)
-
$value (string)
-
return (string)
Example
header::create('Link', '<' . url('feed') . '>; rel="alternate"');
header::create([
'Link' => '<' . url('feed') . '>; rel="alternate"',
'Server' => 'Kirby'
]);