Feature #36696
Allow setting response headers from different locations
Status: | Resolved | Start date: | 2012-04-29 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Robert Lemke | % Done: | 100% |
|
Category: | Http | |||
Target version: | TYPO3 Flow Base Distribution - 1.1 beta 2 | |||
PHP Version: | 5.3 | Complexity: | easy | |
Has patch: | Yes |
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.
Associated revisions
[FEATURE] Add getHttpResponse() to HttpRequestHandler
This adds a getter method to the HTTP request handler
which allows for retrieving the response corresponding
to the currently handled request.
Change-Id: Id418e91237ae6d7ae8a213d3f14124a5a7ce51c9
Resolves: #36696
Releases: 1.1, 1.2
[FEATURE] Add getHttpResponse() to HttpRequestHandler
This adds a getter method to the HTTP request handler
which allows for retrieving the response corresponding
to the currently handled request.
Change-Id: Id418e91237ae6d7ae8a213d3f14124a5a7ce51c9
Resolves: #36696
Releases: 1.1, 1.2
History
#1 Updated by Alexander Berl over 3 years ago
The previous patch contained a typo in the doc-block and should @return \TYPO3\FLOW3\Http\Response. A fixed version is attached.
#2 Updated by Robert Lemke about 3 years ago
- Status changed from New to Accepted
- Assigned To set to Robert Lemke
- Target version set to 1.1 beta 2
- PHP Version set to 5.3
- Complexity changed from no-brainer to easy
#3 Updated by Gerrit Code Review about 3 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11620
#4 Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11620
#5 Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11620
#6 Updated by Gerrit Code Review about 3 years ago
Patch set 1 for branch FLOW3-1.1 has been pushed to the review server.
It is available at http://review.typo3.org/11677
#7 Updated by Robert Lemke about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7e1087a99a5f56bdf458cfd23f61a31f9e3749e4.