RalfEggert / zend-expressive-tutorial

Album tutorial for Zend\Expressive
BSD 3-Clause "New" or "Revised" License
26 stars 15 forks source link

an advanced tip regarding earlier running middleware #10

Closed basz closed 8 years ago

basz commented 8 years ago

The HtmlResponse class accepts a status code and headers as additional arguments. To output the status code and reponse headers generated by middleware executed with a higher priority you need to pass them manually to the HtmlResponse.