on master help sign in
doc for setServerName.
commitc4000b0e1088b156262691207e63fc0705f880f6 authorKazu Yamamoto <kazu@iij.ad.jp> dateTue 9 May 2017, 13:08 (9 years ago) parent7db4f15
1 file changed+4−1
warp/Network/Wai/Handler/Warp.hs+4−1
warp/Network/Wai/Handler/Warp.hs+4−1
@@ -302,7 +302,10 @@ getGracefulShutdownTimeout = settingsGracefulShutdownTimeout
302302setInstallShutdownHandler :: (IO () -> IO ()) -> Settings -> Settings
303303setInstallShutdownHandler x y = y { settingsInstallShutdownHandler = x }
304304
305−-- | Default server name if application does not set one.
305+-- | Default server name to be sent as the \"Server:\" header
306+-- if an application does not set one.
307+-- If an empty string is set, the \"Server:\" header is not sent.
308+-- This is true even if an application set one.
306309--
307310-- Since 3.0.2
308311setServerName :: ByteString -> Settings -> Settings