summaryrefslogtreecommitdiff
path: root/vendor/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php')
-rw-r--r--vendor/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php b/vendor/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php
new file mode 100644
index 0000000..cc44808
--- /dev/null
+++ b/vendor/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Guzzle\Parser\Message;
+
+/**
+ * HTTP message parser interface used to parse HTTP messages into an array
+ */
+interface MessageParserInterface
+{
+ /**
+ * Parse an HTTP request message into an associative array of parts.
+ *
+ * @param string $message HTTP request to parse
+ *
+ * @return array|bool Returns false if the message is invalid
+ */
+ public function parseRequest($message);
+
+ /**
+ * Parse an HTTP response message into an associative array of parts.
+ *
+ * @param string $message HTTP response to parse
+ *
+ * @return array|bool Returns false if the message is invalid
+ */
+ public function parseResponse($message);
+}