X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FRequest.hs;fp=Network%2FHTTP%2FLucu%2FRequest.hs;h=853907a479c851c48896705e2b42a2a720c78f83;hp=66511e24c1f869490469ea637e0ea763ffd1ec34;hb=9668dc27a02b59d7bfb1e9e40af3d2619700ad69;hpb=f402841101b4b84f263eea1a43c848f81c48ff93 diff --git a/Network/HTTP/Lucu/Request.hs b/Network/HTTP/Lucu/Request.hs index 66511e2..853907a 100644 --- a/Network/HTTP/Lucu/Request.hs +++ b/Network/HTTP/Lucu/Request.hs @@ -25,7 +25,7 @@ import Network.URI import Prelude.Unicode -- |This is the definition of HTTP request methods, which shouldn't --- require any description. +-- require any descriptions. data Method = OPTIONS | GET | HEAD @@ -37,7 +37,7 @@ data Method = OPTIONS | ExtensionMethod !Ascii deriving (Eq, Show) --- |This is the definition of HTTP reqest. +-- |This is the definition of an HTTP reqest. data Request = Request { reqMethod ∷ !Method @@ -61,6 +61,7 @@ reqMustHaveBody (reqMethod → m) | m ≡ PUT = True | otherwise = False +-- |'Parser' for a 'Request'. requestP ∷ Parser Request requestP = do skipMany crlf (method, uri, version) ← requestLineP