Skip to content
Snippets Groups Projects
Commit 34c076e2 authored by Bart Visscher's avatar Bart Visscher
Browse files

Add comments the other functions in OC_Request

parent 99ce7ba1
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,10 @@ class OC_Request {
return($proto);
}
/**
* @brief Check if this is a no-cache request
* @returns true for no-cache
*/
static public function isNoCache() {
if (!isset($_SERVER['HTTP_CACHE_CONTROL'])) {
return false;
......@@ -59,6 +63,10 @@ class OC_Request {
return $_SERVER['HTTP_CACHE_CONTROL'] == 'no-cache';
}
/**
* @brief Check if the requestor understands gzip
* @returns true for gzip encoding supported
*/
static public function acceptGZip() {
if (!isset($_SERVER['HTTP_ACCEPT_ENCODING'])) {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment