aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/http/client/iresponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/http/client/iresponse.php')
-rw-r--r--lib/public/http/client/iresponse.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/public/http/client/iresponse.php b/lib/public/http/client/iresponse.php
new file mode 100644
index 00000000000..5355046a2a7
--- /dev/null
+++ b/lib/public/http/client/iresponse.php
@@ -0,0 +1,37 @@
+<?php
+/**
+ * Copyright (c) 2015 Lukas Reschke <lukas@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OCP\Http\Client;
+
+/**
+ * Interface IResponse
+ *
+ * @package OCP\Http
+ */
+interface IResponse {
+ /**
+ * @return string
+ */
+ public function getBody();
+
+ /**
+ * @return int
+ */
+ public function getStatusCode();
+
+ /**
+ * @param $key
+ * @return string
+ */
+ public function getHeader($key);
+
+ /**
+ * @return array
+ */
+ public function getHeaders();
+}