Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment: Feature: http header abstraction for use in controllers #3290

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Jan 29, 2024

Resolves: #3291

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

The `Headers` class handles some cases for abstracting headers very well (e.g. `Cache-Control` and date based headers like `Last-Modified`) and should be the underlying ActionResponse API

This change was originally part of @albe 's PR neos#2219 but reverted via "TASK: Revert Headers change".

This reverts the revert commit aeb132d.
@github-actions github-actions bot added the 9.0 label Jan 29, 2024
@mhsdesign mhsdesign changed the title WIP: FEATURE: http header abstraction for use in controllers Experiment: Feature: http header abstraction for use in controllers Feb 26, 2024
@mhsdesign
Copy link
Member Author

I will close this for now as we probably rather want more explicit helpers like the Cache Header helper instead or reviving the old header class.

Also the ActionResponse doesn’t need to be enriched as we will deprecate it

@mhsdesign mhsdesign closed this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEATURE: Tooling for working with response headers in controller
1 participant