packages feed

wai 1.3.0.3 → 1.4.0

raw patch · 2 files changed

+13/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Network.Wai: ChunkedBody :: RequestBodyLength
+ Network.Wai: KnownLength :: Word64 -> RequestBodyLength
+ Network.Wai: data RequestBodyLength
+ Network.Wai: requestBodyLength :: Request -> RequestBodyLength
- Network.Wai: Request :: Method -> HttpVersion -> ByteString -> ByteString -> ByteString -> Int -> RequestHeaders -> Bool -> SockAddr -> [Text] -> Query -> Source (ResourceT IO) ByteString -> Vault -> Request
+ Network.Wai: Request :: Method -> HttpVersion -> ByteString -> ByteString -> ByteString -> Int -> RequestHeaders -> Bool -> SockAddr -> [Text] -> Query -> Source (ResourceT IO) ByteString -> Vault -> RequestBodyLength -> Request

Files

Network/Wai.hs view
@@ -43,6 +43,7 @@     , Application     , Middleware     , FilePart (..)+    , RequestBodyLength (..)       -- * Response body smart constructors     , responseLBS     , responseStatus@@ -61,6 +62,7 @@ import Data.ByteString.Lazy.Char8 () -- makes it easier to use responseLBS import Blaze.ByteString.Builder (fromByteString) import Data.Vault (Vault)+import Data.Word (Word64)  -- | Information on the request sent by the client. This abstracts away the -- details of the underlying implementation.@@ -98,6 +100,10 @@   ,  requestBody    :: C.Source (C.ResourceT IO) B.ByteString   -- | A location for arbitrary data to be shared by applications and middleware.   , vault           :: Vault+  -- | The size of the request body. In the case of a chunked request body, this may be unknown.+  --+  -- Since 1.4.0+  , requestBodyLength :: RequestBodyLength   }   deriving (Typeable) @@ -175,3 +181,9 @@ -- Here, instead of taking a standard 'Application' as its first argument, the -- middleware takes a function which consumes the session information as well. type Middleware = Application -> Application++-- | The size of the request body. In the case of chunked bodies, the size will+-- not be known.+--+-- Since 1.4.0+data RequestBodyLength = ChunkedBody | KnownLength Word64
wai.cabal view
@@ -1,5 +1,5 @@ Name:                wai-Version:             1.3.0.3+Version:             1.4.0 Synopsis:            Web Application Interface. Description:         Provides a common protocol for communication between web applications and web servers. License:             MIT