function _authcache_get_http_status in Authenticated User Page Caching (Authcache) 7
Same name and namespace in other branches
- 6 authcache.helpers.inc \_authcache_get_http_status()
- 7.2 authcache.module \_authcache_get_http_status()
Determines the HTTP response code that the current page request will be returning by examining the HTTP headers that have been output so far.
1 call to _authcache_get_http_status()
- _authcache_shutdown_save_page in ./
authcache.helpers.inc - Save page to cache
File
- ./
authcache.helpers.inc, line 465 - Helper functions for the Authcache module (no Drupal hooks here).
Code
function _authcache_get_http_status($status = 200) {
$value = drupal_get_http_header("status");
return isset($value) ? (int) $value : $status;
}