static function getClientHeaders() { if (php_Web::$_client_headers === null) { php_Web::$_client_headers = new HList(); $h = php_Lib::hashOfAssociativeArray($_SERVER); if (null == $h) { throw new HException('null iterable'); } $»it = $h->keys(); while ($»it->hasNext()) { $k = $»it->next(); if (_hx_substr($k, 0, 5) === "HTTP_") { php_Web::$_client_headers->add(_hx_anonymous(array("header" => _hx_substr($k, 5, null), "value" => $h->get($k)))); } } } return php_Web::$_client_headers; }