Feature #36696

Allow setting response headers from different locations

Added by Alexander Berl over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Http
Start date:
2012-04-29
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Has patch:
Yes
Complexity:
easy

Description

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.


Files

Also available in: Atom PDF