How is the «Content-Type» HTTP Header added to a JSON response?

https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Controller/Result/Json.php#L61-L69


https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/App/Response/Http.php#L140-L151

See also: