summaryrefslogtreecommitdiff
path: root/plugins/af_readability/vendor/psr/http-factory/src/ResponseFactoryInterface.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-07-24 14:09:22 +0300
committerAndrew Dolgov <[email protected]>2022-07-24 14:09:22 +0300
commit8cf421e1fcae66ee4a8ed6d8c007d26f501c0f1d (patch)
treebabed96bab33455a00997f410da9b19c687a077a /plugins/af_readability/vendor/psr/http-factory/src/ResponseFactoryInterface.php
parent5006c754c42a09f5b88b258c2da4b9eff7508357 (diff)
readability: depend on psr/http-factory
Diffstat (limited to 'plugins/af_readability/vendor/psr/http-factory/src/ResponseFactoryInterface.php')
-rw-r--r--plugins/af_readability/vendor/psr/http-factory/src/ResponseFactoryInterface.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/af_readability/vendor/psr/http-factory/src/ResponseFactoryInterface.php b/plugins/af_readability/vendor/psr/http-factory/src/ResponseFactoryInterface.php
new file mode 100644
index 000000000..212562f00
--- /dev/null
+++ b/plugins/af_readability/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;
+}