klein / klein.php

A fast & flexible router
MIT License
2.66k stars 290 forks source link

Change Content Type of response #377

Closed ghost closed 6 years ago

ghost commented 6 years ago

I am trying to figure out how to change Content-Type in headers of routers response. Is there a way maybe to add/change some of them from lets say text/html to text/xml?

VeryFastSnail commented 5 years ago

$response->header($name, $value);