summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-06 22:17:10 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-07 20:43:00 +0200
commit34c076e2a88c43b02c4177e77cf1068ab6d9d9f8 (patch)
tree107e64eecf33be2f1ea39af2a0c97caf238877e9 /lib
parent99ce7ba1df52334f11c6b97c3f24d0ed31c8f6d0 (diff)
downloadnextcloud-server-34c076e2a88c43b02c4177e77cf1068ab6d9d9f8.tar.gz
nextcloud-server-34c076e2a88c43b02c4177e77cf1068ab6d9d9f8.zip
Add comments the other functions in OC_Request
Diffstat (limited to 'lib')
-rw-r--r--lib/request.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/request.php b/lib/request.php
index cb93a088172..d013844f08d 100644
--- a/lib/request.php
+++ b/lib/request.php
@@ -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;