aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Http/WellKnown/IResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Http/WellKnown/IResponse.php')
-rw-r--r--lib/public/Http/WellKnown/IResponse.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/public/Http/WellKnown/IResponse.php b/lib/public/Http/WellKnown/IResponse.php
new file mode 100644
index 00000000000..2cf63043b63
--- /dev/null
+++ b/lib/public/Http/WellKnown/IResponse.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCP\Http\WellKnown;
+
+use OCP\AppFramework\Http\Response;
+
+/**
+ * @since 21.0.0
+ */
+interface IResponse {
+ /**
+ * @since 21.0.0
+ */
+ public function toHttpResponse(): Response;
+}