summaryrefslogtreecommitdiffstats
path: root/lib/public/response.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/response.php')
-rw-r--r--lib/public/response.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/public/response.php b/lib/public/response.php
index 1942c1ec373..ac27f3e0e6e 100644
--- a/lib/public/response.php
+++ b/lib/public/response.php
@@ -37,6 +37,7 @@ namespace OCP;
/**
* This class provides convenient functions to send the correct http response headers
* @since 4.0.0
+ * @deprecated Use AppFramework controllers instead and modify the response object
*/
class Response {
/**
@@ -103,6 +104,7 @@ class Response {
* Send file as response, checking and setting caching headers
* @param string $filepath of file to send
* @since 4.0.0
+ * @deprecated Use \OCP\AppFramework\Http\StreamResponse or another AppFramework controller instead
*/
static public function sendFile( $filepath ) {
\OC_Response::sendFile( $filepath );