Epic #83894: PSR-15 Initiative
Reimplement EXT:redirect as PSR-15 middleware
The redirect handling is a perfect usecase of PSR-15 middlewares.
Redirect handling wants to a) prevent the regular frontend rendering and b) return an own response. c) in case a no redirect matches it want's the regular RequestHandler to be invoked.
a) is doable by not invoking the RequestHandler a middleware gets passed by parameter
b) is simple by simply returning an own PSR-7 Response
c) is the standard case for a middleware.