_drupal_set_preferred_header_name

Versions
mediamosa-21
_drupal_set_preferred_header_name($name = NULL)

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

▾ 3 functions call _drupal_set_preferred_header_name()

drupal_add_http_header in includes/bootstrap.inc
Set an HTTP response header for the current page.
drupal_page_set_cache in includes/common.inc
Store the current page in the cache.
drupal_send_headers in includes/bootstrap.inc
Send the HTTP response headers previously set using drupal_add_http_header(). Add default headers, unless they have been replaced or unset using drupal_add_http_header().

Code

includes/bootstrap.inc, line 972

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

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