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.

  1. removeHeader :: HeaderName -> CombineSettings -> CombineSettings

    wai-extra Network.Wai.Middleware.CombineHeaders

    Convenience function to remove a header from the header map.

  2. setHeader :: HeaderName -> HandleType -> CombineSettings -> CombineSettings

    wai-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.

  3. setHeaderMap :: HeaderMap -> CombineSettings -> CombineSettings

    wai-extra Network.Wai.Middleware.CombineHeaders

    Override the HeaderMap of the CombineSettings (default: defaultHeaderMap)

  4. setRequestHeaders :: Bool -> CombineSettings -> CombineSettings

    wai-extra Network.Wai.Middleware.CombineHeaders

    Set whether the combining of headers should be applied to the incoming request headers. (default: True)

  5. setResponseHeaders :: Bool -> CombineSettings -> CombineSettings

    wai-extra Network.Wai.Middleware.CombineHeaders

    Set whether the combining of headers should be applied to the outgoing response headers. (default: False)

  6. realIpHeader :: HeaderName -> Middleware

    wai-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.

  7. CustomOutputFormatWithDetailsAndHeaders :: OutputFormatterWithDetailsAndHeaders -> OutputFormat

    wai-extra Network.Wai.Middleware.RequestLogger

    No documentation available.

  8. FromHeader :: IPAddrSource

    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).

  9. FromHeaderCustom :: [HeaderName] -> IPAddrSource

    wai-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.

  10. type OutputFormatterWithDetailsAndHeaders = ZonedDate -> Request -> Status -> Maybe Integer -> NominalDiffTime -> [ByteString] -> Builder -> [Header] -> LogStr

    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.

Page 160 of many | Previous | Next