summaryrefslogtreecommitdiffstats
path: root/vendor/psr/http-factory/src/ResponseFactoryInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/psr/http-factory/src/ResponseFactoryInterface.php')
-rw-r--r--vendor/psr/http-factory/src/ResponseFactoryInterface.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/psr/http-factory/src/ResponseFactoryInterface.php b/vendor/psr/http-factory/src/ResponseFactoryInterface.php
new file mode 100644
index 0000000..212562f
--- /dev/null
+++ b/vendor/psr/http-factory/src/ResponseFactoryInterface.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Psr\Http\Message;
+
+interface ResponseFactoryInterface
+{
+ /**
+ * Create a new response.
+ *
+ * @param int $code HTTP status code; defaults to 200
+ * @param string $reasonPhrase Reason phrase to associate with status code
+ * in generated response; if none is provided implementations MAY use
+ * the defaults as suggested in the HTTP specification.
+ *
+ * @return ResponseInterface
+ */
+ public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface;
+}