@@ -246,6 +246,8 @@ setFork :: (((forall a. IO a -> IO a) -> IO ()) -> IO ()) -> Settings -> Setting
246246setFork fork' s = s { settingsFork = fork' }
247247
248248-- | Do not use the PROXY protocol.
249+--
250+-- Since 3.0.5
249251setProxyProtocolNone :: Settings -> Settings
250252setProxyProtocolNone y = y { settingsProxyProtocol = ProxyProtocolNone }
251253
@@ -260,6 +262,8 @@ setProxyProtocolNone y = y { settingsProxyProtocol = ProxyProtocolNone }
260262--
261263-- Only the human-readable header format (version 1) is supported. The binary
262264-- header format (version 2) is /not/ supported.
265+--
266+-- Since 3.0.5
263267setProxyProtocolRequired :: Settings -> Settings
264268setProxyProtocolRequired y = y { settingsProxyProtocol = ProxyProtocolRequired }
265269
@@ -274,5 +278,7 @@ setProxyProtocolRequired y = y { settingsProxyProtocol = ProxyProtocolRequired }
274278-- such as if a load balancer health check uses regular
275279-- HTTP without the PROXY header, but proxied
276280-- connections /do/ include the PROXY header.
281+--
282+-- Since 3.0.5
277283setProxyProtocolOptional :: Settings -> Settings
278284setProxyProtocolOptional y = y { settingsProxyProtocol = ProxyProtocolOptional }