wai 0.4.0 → 0.4.1
raw patch · 2 files changed
+6/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Network.Wai: instance Show FilePart
+ Network.Wai: instance Show Request
Files
- Network/Wai.hs +5/−3
- wai.cabal +1/−1
Network/Wai.hs view
@@ -70,9 +70,11 @@ -- depending on backend; in a standalone server setting, this is most likely -- all information after the domain name. In a CGI application, this would be -- the information following the path to the CGI executable itself.+ -- Do not modify this raw value- modify pathInfo instead. , rawPathInfo :: B.ByteString -- | If no query string was specified, this should be empty. This value -- /will/ include the leading question mark.+ -- Do not modify this raw value- modify queryString instead. , rawQueryString :: B.ByteString -- | Generally the host requested by the user via the Host request header. -- Backends are free to provide alternative values as necessary. This value@@ -88,12 +90,12 @@ , isSecure :: Bool -- | The client\'s host information. , remoteHost :: SockAddr- -- | Path info, broken down into individual components.+ -- | Path info in individual pieces- the url without a hostname/port and without a query string, split on forward slashes, , pathInfo :: [Text] -- | Parsed query string information , queryString :: H.Query }- deriving Typeable+ deriving (Show, Typeable) data Response = ResponseFile H.Status H.ResponseHeaders FilePath (Maybe FilePart)@@ -104,7 +106,7 @@ data FilePart = FilePart { filePartOffset :: Integer , filePartByteCount :: Integer- }+ } deriving Show type ResponseEnumerator a = (H.Status -> H.ResponseHeaders -> Iteratee Builder IO a) -> IO a
wai.cabal view
@@ -1,5 +1,5 @@ Name: wai-Version: 0.4.0+Version: 0.4.1 Synopsis: Web Application Interface. Description: Provides a common protocol for communication between web aplications and web servers. License: BSD3