protected function RESTServer::parseRequestHeaders in Services 7.3
Same name and namespace in other branches
- 6.3 servers/rest_server/includes/RESTServer.inc \RESTServer::parseRequestHeaders()
1 call to RESTServer::parseRequestHeaders()
- RESTServer::getControllerArguments in servers/
rest_server/ includes/ RESTServer.inc - Parses controller arguments from request
File
- servers/
rest_server/ includes/ RESTServer.inc, line 362 - Class for handling REST calls.
Class
- RESTServer
- @file Class for handling REST calls.
Code
protected function parseRequestHeaders() {
$headers = array();
$http_if_modified_since = $this->context
->getServerVariable('HTTP_IF_MODIFIED_SINCE');
if (!empty($http_if_modified_since)) {
$headers['IF_MODIFIED_SINCE'] = strtotime(preg_replace('/;.*$/', '', $http_if_modified_since));
}
return $headers;
}