summaryrefslogtreecommitdiffstats
path: root/vendor/psr/http-factory/src/RequestFactoryInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/psr/http-factory/src/RequestFactoryInterface.php')
-rw-r--r--vendor/psr/http-factory/src/RequestFactoryInterface.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/psr/http-factory/src/RequestFactoryInterface.php b/vendor/psr/http-factory/src/RequestFactoryInterface.php
new file mode 100644
index 0000000..cb39a08
--- /dev/null
+++ b/vendor/psr/http-factory/src/RequestFactoryInterface.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Psr\Http\Message;
+
+interface RequestFactoryInterface
+{
+ /**
+ * Create a new request.
+ *
+ * @param string $method The HTTP method associated with the request.
+ * @param UriInterface|string $uri The URI associated with the request. If
+ * the value is a string, the factory MUST create a UriInterface
+ * instance based on it.
+ *
+ * @return RequestInterface
+ */
+ public function createRequest(string $method, $uri): RequestInterface;
+}