You are here

function _authcache_get_http_status in Authenticated User Page Caching (Authcache) 6

Same name and namespace in other branches
  1. 7.2 authcache.module \_authcache_get_http_status()
  2. 7 authcache.helpers.inc \_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 372
Helper functions for the Authcache module (no Drupal hooks here).

Code

function _authcache_get_http_status($default = 200) {
  static $regex = '!^HTTP/1.1\\s+(\\d+)!';
  return (int) _authcache_get_http_header($regex, $default);
}