X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FResponse.hs;h=191cebd3deaa7d5191ea5b02ac2ab411b3b4ba51;hb=3318fe04b2d541a29228a96f69e0dcf81392a38f;hp=cfff8197ddbaea7ea17d3d55be11398f8a76c714;hpb=51eda5b02d4528e2e240cbfc228de02b1c83799a;p=Lucu.git diff --git a/Network/HTTP/Lucu/Response.hs b/Network/HTTP/Lucu/Response.hs index cfff819..191cebd 100644 --- a/Network/HTTP/Lucu/Response.hs +++ b/Network/HTTP/Lucu/Response.hs @@ -10,6 +10,7 @@ module Network.HTTP.Lucu.Response StatusCode(..) , SomeStatusCode(..) , Response(..) + , statusCodes , module Network.HTTP.Lucu.StatusCode -- * Functions @@ -18,6 +19,8 @@ module Network.HTTP.Lucu.Response , printStatusCode , printResponse + , (≈) + , (≉) , isInformational , isSuccessful , isRedirection @@ -65,11 +68,11 @@ emptyResponse sc resCanHaveBody ∷ Response → Bool {-# INLINEABLE resCanHaveBody #-} resCanHaveBody (Response {..}) - | isInformational resStatus = False - | toStatusCode resStatus ≡ Just NoContent = False - | toStatusCode resStatus ≡ Just ResetContent = False - | toStatusCode resStatus ≡ Just NotModified = False - | otherwise = True + | isInformational resStatus = False + | resStatus ≈ NoContent = False + | resStatus ≈ ResetContent = False + | resStatus ≈ NotModified = False + | otherwise = True -- |Convert a 'Response' to 'AsciiBuilder'. printResponse ∷ Response → AsciiBuilder