summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework/http/response.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/appframework/http/response.php')
-rw-r--r--lib/public/appframework/http/response.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/appframework/http/response.php b/lib/public/appframework/http/response.php
index d223621d4fd..e704acca7f0 100644
--- a/lib/public/appframework/http/response.php
+++ b/lib/public/appframework/http/response.php
@@ -80,6 +80,7 @@ class Response {
$this->addHeader('Cache-Control', 'no-cache, must-revalidate');
}
+ return $this;
}
@@ -95,6 +96,8 @@ class Response {
} else {
$this->headers[$name] = $value;
}
+
+ return $this;
}
@@ -133,6 +136,8 @@ class Response {
*/
public function setStatus($status) {
$this->status = $status;
+
+ return $this;
}
@@ -168,6 +173,8 @@ class Response {
*/
public function setETag($ETag) {
$this->ETag = $ETag;
+
+ return $this;
}
@@ -177,6 +184,8 @@ class Response {
*/
public function setLastModified($lastModified) {
$this->lastModified = $lastModified;
+
+ return $this;
}