Issue Task Closed

#83724HTTP RequestHandlers should always return a PSR-7 ResponseInterface, not NULL

Benjamin Franzke 01/29/18, 21:03 updated 10/02/18, 10:52

Description

The PSR-15 middleware interfaces [1] require that RequestHandlers always return a Response.
In order to support PSR-15 middleware (at some point), TYPO3 request handlers should do the same.

A NULL return value should rather be replaced with a PSR-7 Response that’s either ignored by Core\Bootstrap or a Response with a 200 status code and an empty body.

[1] https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md

Reviews 1