@@ -76,6 +76,13 @@ data Settings = Settings
7676 --
7777 -- Since 2.0.3
7878 , settingsInstallShutdownHandler :: IO () -> IO ()
79+ -- ^ An action to install a handler (e.g. Unix signal handler)
80+ -- to close a listen socket.
81+ -- The first argument is an action to close the listen socket.
82+ --
83+ -- Default: no action
84+ --
85+ -- Since 3.0.1
7986 , settingsServerName :: ByteString
8087 -- ^ Default server name if application does not set one.
8188 --
@@ -87,23 +94,23 @@ data Settings = Settings
8794 , settingsProxyProtocol :: ProxyProtocol
8895 -- ^ Specify usage of the PROXY protocol.
8996 --
90− -- Since 3.0.5.
97+ -- Since 3.0.5
9198 , settingsSlowlorisSize :: Int
9299 -- ^ Size of bytes read to prevent Slowloris protection. Default value: 2048
93100 --
94− -- Since 3.1.2.
101+ -- Since 3.1.2
95102 , settingsHTTP2Enabled :: Bool
96103 -- ^ Whether to enable HTTP2 ALPN/upgrades. Default: True
97104 --
98− -- Since 3.1.7.
105+ -- Since 3.1.7
99106 , settingsLogger :: Request -> H.Status -> Maybe Integer -> IO ()
100107 -- ^ A log function. Default: no action.
101108 --
102− -- Since 3.X.X.
109+ -- Since 3.1.10
103110 , settingsServerPushLogger :: Request -> ByteString -> Integer -> IO ()
104111 -- ^ A HTTP/2 server push log function. Default: no action.
105112 --
106− -- Since 3.X.X.
113+ -- Since 3.2.7
107114 , settingsGracefulShutdownTimeout :: Maybe Int
108115 -- ^ An optional timeout to limit the time (in seconds) waiting for
109116 -- a graceful shutdown of the web server.