on master help sign in
Provide settings getters from .Internal
commit9a66a226c18f2db94a4bb85a9aa5d1c3e5e2ece6 authorMichael Snoyman <michael@snoyman.com> dateWed 19 Mar 2014, 16:22 (13 years ago) parente65a705
2 files changed+17−1
warp/Network/Wai/Handler/Warp/Internal.hs+16 warp/warp.cabal+1−1
warp/Network/Wai/Handler/Warp/Internal.hs+16
@@ -1,5 +1,21 @@
1+{-# OPTIONS_GHC -fno-warn-deprecations #-}
12module Network.Wai.Handler.Warp.Internal
23 ( Settings (..)
4+ , getOnOpen
5+ , getOnClose
6+ , getOnException
37 ) where
48
59import Network.Wai.Handler.Warp.Settings (Settings (..))
10+import Network.Socket (SockAddr)
11+import Network.Wai (Request)
12+import Control.Exception (SomeException)
13+
14+getOnOpen :: Settings -> SockAddr -> IO Bool
15+getOnOpen = settingsOnOpen
16+
17+getOnClose :: Settings -> SockAddr -> IO ()
18+getOnClose = settingsOnClose
19+
20+getOnException :: Settings -> Maybe Request -> SomeException -> IO ()
21+getOnException = settingsOnException
warp/warp.cabal+1−1
@@ -1,5 +1,5 @@
11Name: warp
2−Version: 2.1.1.3
2+Version: 2.1.2
33Synopsis: A fast, light-weight web server for WAI applications.
44License: MIT
55License-file: LICENSE