on master help sign in
Version bump
commit52e7dd0d38948d6c3438380bd10987787189dd1c authorMichael Snoyman <michael@snoyman.com> dateTue 29 Mar 2016, 09:10 (11 years ago) parent0834b0a
3 files changed+11−1
warp/ChangeLog.md+4 warp/Network/Wai/Handler/Warp/WithApplication.hs+6 warp/warp.cabal+1−1
warp/ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 3.2.4
2+
3+* Added `withApplication`, `testWithApplication`, and `openFreePort`
4+
15## 3.2.3
26
37* Using http2 v1.5.x which much improves the performance of HTTP/2.
warp/Network/Wai/Handler/Warp/WithApplication.hs+6
@@ -18,6 +18,8 @@ import Network.Wai.Handler.Warp.Types
1818-- | Runs the given 'Application' on a free port. Passes the port to the given
1919-- operation and executes it, while the 'Application' is running. Shuts down the
2020-- server before returning.
21+--
22+-- @since 3.2.4
2123withApplication :: IO Application -> (Port -> IO a) -> IO a
2224withApplication mkApp action = do
2325 app <- mkApp
@@ -45,6 +47,8 @@ withApplication mkApp action = do
4547--
4648-- __The exception handling makes this function unsuitable for use in production.__
4749-- Use 'withApplication' instead.
50+--
51+-- @since 3.2.4
4852testWithApplication :: IO Application -> (Port -> IO a) -> IO a
4953testWithApplication mkApp action = do
5054 callingThread <- myThreadId
@@ -70,6 +74,8 @@ mkWaiter = do
7074 }
7175
7276-- | Opens a socket on a free port and returns both port and socket.
77+--
78+-- @since 3.2.4
7379openFreePort :: IO (Port, Socket)
7480openFreePort = do
7581 s <- socket AF_INET Stream defaultProtocol
warp/warp.cabal+1−1
@@ -1,5 +1,5 @@
11Name: warp
2−Version: 3.2.3
2+Version: 3.2.4
33Synopsis: A fast, light-weight web server for WAI applications.
44License: MIT
55License-file: LICENSE