X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FResource.hs;h=3bc75246cca62f8e9ba6b8be59d8a01d53aefd70;hb=9bb89434103e9a22f100d6ecb7e65a5d461e0454;hp=34c1a725634b6485df32d7e5e302238e44cf78b4;hpb=8e2a25fd631e17a9c7b3e13c4e62635b2c1259bf;p=Lucu.git diff --git a/Network/HTTP/Lucu/Resource.hs b/Network/HTTP/Lucu/Resource.hs index 34c1a72..3bc7524 100644 --- a/Network/HTTP/Lucu/Resource.hs +++ b/Network/HTTP/Lucu/Resource.hs @@ -1,3 +1,7 @@ +{-# LANGUAGE + UnboxedTuples + , UnicodeSyntax + #-} {-# OPTIONS_HADDOCK prune #-} -- |This is the Resource Monad; monadic actions to define the behavior @@ -135,7 +139,6 @@ module Network.HTTP.Lucu.Resource , driftTo ) where - import Control.Concurrent.STM import Control.Monad.Reader import qualified Data.ByteString as Strict (ByteString) @@ -157,7 +160,6 @@ import qualified Network.HTTP.Lucu.Headers as H import Network.HTTP.Lucu.HttpVersion import Network.HTTP.Lucu.Interaction import Network.HTTP.Lucu.MultipartForm -import Network.HTTP.Lucu.Parser import Network.HTTP.Lucu.Postprocess import Network.HTTP.Lucu.Request import Network.HTTP.Lucu.Response @@ -413,7 +415,7 @@ getAuthorization -- |Tell the system that the 'Resource' found an entity for the -- request URI. If this is a GET or HEAD request, a found entity means -- a datum to be replied. If this is a PUT or DELETE request, it means --- a datum which was stored for the URI up to now. It is an error to +-- a datum which was stored for the URI until now. It is an error to -- compute 'foundEntity' if this is a POST request. -- -- Computation of 'foundEntity' performs \"If-Match\" test or @@ -434,7 +436,7 @@ foundEntity tag timeStamp $ setHeader' (C8.pack "Last-Modified") (C8.pack $ HTTP.format timeStamp) when (method == POST) $ abort InternalServerError [] - (Just "Illegal computation of foundEntity for POST request.") + (Just "Illegal computation of foundEntity for a POST request.") foundETag tag driftTo GettingBody