summaryrefslogtreecommitdiff
path: root/app/Web/Request.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/Web/Request.hs')
-rw-r--r--app/Web/Request.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Web/Request.hs b/app/Web/Request.hs
index 71dc421..96144b8 100644
--- a/app/Web/Request.hs
+++ b/app/Web/Request.hs
@@ -8,8 +8,11 @@ import Web.Http
data Request = Request [QueryPair] Text Method
deriving Show
+getQuery :: Request -> [QueryPair]
getQuery (Request query _ _) = query
+getUrl :: Request -> Text
getUrl (Request _ url _) = url
-getMethod (Request _ _ method) = method \ No newline at end of file
+getMethod :: Request -> Method
+getMethod (Request _ _ method) = method