Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
removeHeader :: HeaderName -> CombineSettings -> CombineSettingswai-extra Network.Wai.Middleware.CombineHeaders Convenience function to remove a header from the header map.
setHeader :: HeaderName -> HandleType -> CombineSettings -> CombineSettingswai-extra Network.Wai.Middleware.CombineHeaders Convenience function to add a header to the header map or, if it is already in the map, to change the HandleType.
setHeaderMap :: HeaderMap -> CombineSettings -> CombineSettingswai-extra Network.Wai.Middleware.CombineHeaders Override the HeaderMap of the CombineSettings (default: defaultHeaderMap)
setRequestHeaders :: Bool -> CombineSettings -> CombineSettingswai-extra Network.Wai.Middleware.CombineHeaders Set whether the combining of headers should be applied to the incoming request headers. (default: True)
setResponseHeaders :: Bool -> CombineSettings -> CombineSettingswai-extra Network.Wai.Middleware.CombineHeaders Set whether the combining of headers should be applied to the outgoing response headers. (default: False)
realIpHeader :: HeaderName -> Middlewarewai-extra Network.Wai.Middleware.RealIp Infer the remote IP address using the given header, trusting requests from any private IP address. See realIpTrusted for more information and options.
CustomOutputFormatWithDetailsAndHeaders :: OutputFormatterWithDetailsAndHeaders -> OutputFormatwai-extra Network.Wai.Middleware.RequestLogger No documentation available.
-
wai-extra Network.Wai.Middleware.RequestLogger From X-Real-IP or X-Forwarded-For in the HTTP header. This picks either X-Real-IP or X-Forwarded-For depending on which of these headers comes first in the ordered list of request headers. If the X-Forwarded-For header is picked, the value will be assumed to be a comma-separated list of IP addresses. The value will be parsed, and the left-most IP address will be used (which is mostly likely to be the actual client IP address).
FromHeaderCustom :: [HeaderName] -> IPAddrSourcewai-extra Network.Wai.Middleware.RequestLogger From a custom HTTP header, useful in proxied environment. The header value will be assumed to be a comma-separated list of IP addresses. The value will be parsed, and the left-most IP address will be used (which is mostly likely to be the actual client IP address). Note that this still works as expected for a single IP address.
-
wai-extra Network.Wai.Middleware.RequestLogger Same as OutputFormatterWithDetails but with response headers included This is useful if you wish to include arbitrary application data in your logs, e.g., an authenticated user ID, which you would set in a response header in your application and retrieve in the log formatter.