You are here

function _boost_get_http_status in Boost 5

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 _boost_get_http_status()
_boost_ob_handler in ./boost.module
PHP output buffering callback for static page caching.

File

./boost.module, line 334
Provides static page caching for Drupal.

Code

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