function _drupal_set_preferred_header_name

_drupal_set_preferred_header_name($name = NULL)

Sets the preferred name for the HTTP header.

Header names are case-insensitive, but for maximum compatibility they should follow "common form" (see RFC 2617, section 4.2).

File

includes/bootstrap.inc, line 1432
Functions that need to be loaded on every Drupal request.

Code

function _drupal_set_preferred_header_name($name = NULL) {
  static $header_names = array();

  if (!isset($name)) {
    return $header_names;
  }
  $header_names[strtolower($name)] = $name;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/_drupal_set_preferred_header_name/7.x