You are here

function _authcache_get_http_status in Authenticated User Page Caching (Authcache) 7.2

Same name and namespace in other branches
  1. 6 authcache.helpers.inc \_authcache_get_http_status()
  2. 7 authcache.helpers.inc \_authcache_get_http_status()

Return HTTP status code.

Determines the HTTP response code that the current page request will be returning by examining the HTTP headers that have been output so far.

Related topics

1 call to _authcache_get_http_status()
authcache_authcache_cancel in ./authcache.module
Implements hook_authcache_cancel().

File

./authcache.module, line 844
Authenticated User Page Caching (and anonymous users, too!)

Code

function _authcache_get_http_status($status = 200) {
  $value = drupal_get_http_header('status');
  return isset($value) ? (int) $value : $status;
}