Hoogle Search

Within LTS Haskell 24.38 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. parseQValueList :: ByteString -> [(ByteString, Maybe Int)]

    wai-extra Network.Wai.Header

    Only to be used on header's values which support quality value syntax A few things to keep in mind when using this function: * The resulting Int will be anywhere from 1000 to 0 ("1" = 1000, "0.6" = 600, "0.025" = 25) * The absence of a Q value will result in 'Just 1000' * A bad parse of the Q value will result in a Nothing, e.g. * Q value has more than 3 digits behind the dot * Q value is missing * Q value is higher than 1 * Q value is not a number

  2. fromRequest :: Middleware

    wai-extra Network.Wai.Middleware.Approot

    Get the approot by analyzing the request. This is not a full-proof approach, but in many common cases will work. Situations that can break this are:

    • Requests which spoof headers and imply the connection is over HTTPS
    • Reverse proxies that change ports in surprising ways
    • Invalid Host headers
    • Reverse proxies which modify the path info
    Normally trusting headers in this way is insecure, however in the case of approot, the worst that can happen is that the client will get an incorrect URL. If you are relying on the approot for some security-sensitive purpose, it is highly recommended to use hardcoded, which cannot be spoofed. Since 3.0.7

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

  4. module Network.Wai.Middleware.RequestLogger

    No documentation available.

  5. FromRequest :: (Request -> ByteString) -> IPAddrSource

    wai-extra Network.Wai.Middleware.RequestLogger

    This gives you the most flexibility to figure out the IP source address from the Request. The returned ByteString is used as the IP source address.

  6. data RequestLoggerSettings

    wai-extra Network.Wai.Middleware.RequestLogger

    Settings for the request logger. Sets what which format, outputFormat, autoFlush, and destination are record fields for the record type RequestLoggerSettings, so they can be used to modify settings values using record syntax.

  7. defaultRequestLoggerSettings :: RequestLoggerSettings

    wai-extra Network.Wai.Middleware.RequestLogger

    Default RequestLoggerSettings. Use this to create RequestLoggerSettings, and use the accompanying fields to edit these settings.

  8. mFilterRequests :: DetailedSettings -> Maybe (Request -> Response -> Bool)

    wai-extra Network.Wai.Middleware.RequestLogger

    No documentation available.

  9. mPrelogRequests :: DetailedSettings -> Bool

    wai-extra Network.Wai.Middleware.RequestLogger

    No documentation available.

  10. mkRequestLogger :: RequestLoggerSettings -> IO Middleware

    wai-extra Network.Wai.Middleware.RequestLogger

    Create the Middleware using the given RequestLoggerSettings

Page 233 of many | Previous | Next