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

#1

Updated by Alexander Berl over 9 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 over 9 years ago

  • Status changed from New to Accepted
  • Assignee 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 over 9 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 over 9 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 over 9 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 over 9 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 over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF