Allow setting response headers from different locations
As a developer, I want to set response headers from locations different from the current controller invocation for various needs.
For example, I want to set the "Vary: Accept-Language" header from a locale detection service, or the "Cache-Control" headers from a caching service.
I suggest the RequestHandler should also provide access to the current response object, as it currently does to the HttpRequest object.
Updated by Alexander Berl over 9 years ago
- File 0013-FEATURE-Allow-access-to-the-current-response-object-.patch 0013-FEATURE-Allow-access-to-the-current-response-object-.patch added
The previous patch contained a typo in the doc-block and should @return \TYPO3\FLOW3\Http\Response. A fixed version is attached.