aboutsummaryrefslogtreecommitdiff
path: root/src/Http/ResponseInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Http/ResponseInterface.php')
-rw-r--r--src/Http/ResponseInterface.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Http/ResponseInterface.php b/src/Http/ResponseInterface.php
new file mode 100644
index 0000000..cb74ea0
--- /dev/null
+++ b/src/Http/ResponseInterface.php
@@ -0,0 +1,17 @@
+<?php
+
+declare(strict_types=1);
+
+namespace BrettParson\MiniRoute\Http;
+
+interface ResponseInterface
+{
+ public function status(): int;
+
+ public function body(): string;
+
+ /**
+ * Return a copy of the response with an additional (or overridden) header.
+ */
+ public function withHeader(string $name, string $value): ResponseInterface;
+}