summaryrefslogtreecommitdiff
path: root/Request.hs
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-11-27 17:40:04 +0400
committerAndrew <saintruler@gmail.com>2020-11-27 17:40:04 +0400
commitfb7e450d917ec87202f9de019238b78c1b645328 (patch)
treeca70481709864b5c6510009fe45a9d6b6f91dd8c /Request.hs
parent039c96096bf8f2294850be79a88a0761a5f58acf (diff)
Added basic HTTP types
Diffstat (limited to 'Request.hs')
-rw-r--r--Request.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Request.hs b/Request.hs
index fae0a32..ad63909 100644
--- a/Request.hs
+++ b/Request.hs
@@ -1,7 +1,10 @@
module Request where
+import Http
+
-- Request query url method
-data Request = Request String String String
+data Request = Request [QueryPair] String Method
+ deriving Show
getQuery (Request query _ _) = query