Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setOnOpen :: (SockAddr -> IO Bool) -> Settings -> Settingswarp Network.Wai.Handler.Warp What to do when a connection is opened. When False is returned, the connection is closed immediately. Otherwise, the connection is going on. Default: always returns True. Since 2.1.0
setPort :: Port -> Settings -> Settingswarp Network.Wai.Handler.Warp Port to listen on. Default value: 3000 Since 2.1.0
setProxyProtocolNone :: Settings -> Settingswarp Network.Wai.Handler.Warp Do not use the PROXY protocol. Since 3.0.5
setProxyProtocolOptional :: Settings -> Settingswarp Network.Wai.Handler.Warp Use the PROXY header if it exists, but also accept connections without the header. See setProxyProtocolRequired. WARNING: This is contrary to the PROXY protocol specification and using it can indicate a security problem with your architecture if the web server is directly accessible to the public, since it would allow easy IP address spoofing. However, it can be useful in some cases, such as if a load balancer health check uses regular HTTP without the PROXY header, but proxied connections do include the PROXY header. Since 3.0.5
setProxyProtocolRequired :: Settings -> Settingswarp Network.Wai.Handler.Warp Require PROXY header. This is for cases where a "dumb" TCP/SSL proxy is being used, which cannot add an X-Forwarded-For HTTP header field but has enabled support for the PROXY protocol. See http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt and http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#proxy-protocol. Only the human-readable header format (version 1) is supported. The binary header format (version 2) is not supported. Since 3.0.5
setServerName :: ByteString -> Settings -> Settingswarp Network.Wai.Handler.Warp Default server name to be sent as the "Server:" header if an application does not set one. If an empty string is set, the "Server:" header is not sent. This is true even if an application set one. Since 3.0.2
setServerPushLogger :: (Request -> ByteString -> Integer -> IO ()) -> Settings -> Settingswarp Network.Wai.Handler.Warp Setting a log function for HTTP/2 server push. Since: 3.2.7
setSlowlorisSize :: Int -> Settings -> Settingswarp Network.Wai.Handler.Warp Size in bytes read to prevent Slowloris attacks. Default value: 2048 Since 3.1.2
setTimeout :: Int -> Settings -> Settingswarp Network.Wai.Handler.Warp "Slow-loris" timeout lower-bound value in seconds. Connections where network progress is made less frequently than this may be closed. In practice many connections may be allowed to go without progress for up to twice this amount of time. Note that this timeout is not applied to application code, only network progress. Default value: 30 Since 2.1.0
setFileCloseOnExec :: Fd -> IO ()warp Network.Wai.Handler.Warp.Internal No documentation available.