]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Request.hs
More documentation
[Lucu.git] / Network / HTTP / Lucu / Request.hs
index f8b1c93504bd34cacba81fb6b9c100547fd36025..1645b5bc60df3f97e6ae4e77074a6bab09eefd5a 100644 (file)
@@ -1,7 +1,12 @@
+-- #prune
+
+-- |Definition of things related on HTTP request.
+--
+-- In general you don't have to use this module directly.
 module Network.HTTP.Lucu.Request
     ( Method(..)
     , Request(..)
-    , requestP -- Parser Request
+    , requestP
     )
     where
 
@@ -13,6 +18,8 @@ import           Network.HTTP.Lucu.Parser
 import           Network.HTTP.Lucu.Parser.Http
 import           Network.URI
 
+-- |This is the definition of HTTP request methods, which shouldn't
+-- require any description.
 data Method = OPTIONS
             | GET
             | HEAD
@@ -24,7 +31,7 @@ data Method = OPTIONS
             | ExtensionMethod String
               deriving (Eq, Show)
 
-
+-- |This is the definition of HTTP reqest.
 data Request
     = Request {
         reqMethod  :: Method