Reference

Guide

Header::contentType()

Sends a content type header

Header::contentType(string $mime, string $charset = 'UTF-8', bool $send = true): string|void

Parameters

Name Type Default Description
$mime string
$charset string 'UTF-8'
$send bool true

Return type

string|void

Source code

kirby/src/Http/Header.php#L65