wai 3.0.0.1 → 3.0.0.2
raw patch · 2 files changed
+9/−9 lines, 2 files
Files
- Network/Wai.hs +8/−8
- wai.cabal +1/−1
Network/Wai.hs view
@@ -138,12 +138,12 @@ -- @ -- app :: Application -- app req respond = bracket_--- (putStrLn "Allocating scarce resource")--- (putStrLn "Cleaning up")--- $ respond $ responseStream status200 [] $ \write flush -> do--- write $ fromByteString "Hello\n"+-- (putStrLn \"Allocating scarce resource\")+-- (putStrLn \"Cleaning up\")+-- $ respond $ responseStream status200 [] $ \\write flush -> do+-- write $ fromByteString \"Hello\\n\" -- flush--- write $ fromByteString "World\n"+-- write $ fromByteString \"World\\n\" -- @ -- -- Note that in some cases you can use @bracket@ from inside @responseStream@@@ -235,9 +235,9 @@ -- @ -- app :: Application -- app req respond = bracket_--- (putStrLn "Allocating scarce resource")--- (putStrLn "Cleaning up")--- (respond $ responseLBS status200 [] "Hello World")+-- (putStrLn \"Allocating scarce resource\")+-- (putStrLn \"Cleaning up\")+-- (respond $ responseLBS status200 [] \"Hello World\") -- @ type Application = Request -> (Response -> IO ResponseReceived) -> IO ResponseReceived
wai.cabal view
@@ -1,5 +1,5 @@ Name: wai-Version: 3.0.0.1+Version: 3.0.0.2 Synopsis: Web Application Interface. Description: Provides a common protocol for communication between web applications and web servers. License: MIT