Problem/Motivation

@deprecated things are deprecated, including _drupal_add_http_header() and other header-related functions from bootstrap.inc.

HTTP headers are now handed by the Symfony Request/Response objects. Let's finish the job of encapsulating responses by removing the global header-related functions.

The affected functions include:

Note that FinishResponseSubscriber calls drupal_get_http_header(), in order to retain backward compatibility, which will be obsoleted by this patch.

Proposed resolution

Remove these functions from Drupal core.

Remaining tasks

User interface changes

API changes

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because this issue does not fix anything that's broken, other than deprecation.
Issue priority Normal because it's not a pressing issue.
Prioritized changes Prioritized because it removes @deprecated code.

Comments

Mile23’s picture

Issue summary: View changes
Mile23’s picture

Wim Leers’s picture

Status: Postponed » Closed (duplicate)

#2467759: Refactor drupal_process_attached() so it doesn't depend on drupal_add_http_header() already removed _drupal_add_http_header() and _drupal_get_http_header()..

AFAICT this is all done? :)

Mile23’s picture

Indeedy. Looks like all the mentioned functions have disappeared.