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. formatAsJSONWithHeaders :: OutputFormatterWithDetailsAndHeaders

    wai-extra Network.Wai.Middleware.RequestLogger.JSON

    Same as formatAsJSON but with response headers included This is useful for passing arbitrary data from your application out to the WAI layer for it to be logged, but you may need to be careful to subsequently redact any headers which may contain sensitive data.

  2. module Network.Wai.Middleware.StripHeaders

    No documentation available.

  3. stripHeader :: ByteString -> Response -> Response

    wai-extra Network.Wai.Middleware.StripHeaders

    No documentation available.

  4. stripHeaderIf :: ByteString -> (Request -> Bool) -> Middleware

    wai-extra Network.Wai.Middleware.StripHeaders

    If the request satisifes the provided predicate, strip headers matching the provided header name. Since 3.0.8

  5. stripHeaders :: [ByteString] -> Response -> Response

    wai-extra Network.Wai.Middleware.StripHeaders

    No documentation available.

  6. stripHeadersIf :: [ByteString] -> (Request -> Bool) -> Middleware

    wai-extra Network.Wai.Middleware.StripHeaders

    If the request satisifes the provided predicate, strip all headers whose header name is in the list of provided header names. Since 3.0.8

  7. module Network.Wai.Middleware.ValidateHeaders

    This module provides a middleware to validate response headers. RFC 9110 constrains the allowed octets in header names and values:

    • Header names are tokens, i.e. visible ASCII characters (octets 33 to 126 inclusive) except delimiters.
    • Header values should be limited to visible ASCII characters, the whitespace characters space and horizontal tab and octets 128 to 255. Headers values may not have trailing whitespace (see RFC 9110 Section 5.5). Folding is not allowed.
    validateHeadersMiddleware enforces these constraints for response headers by responding with a 500 Internal Server Error when an offending character is present. This is meant to catch programmer errors early on and reduce attack surface.

  8. data InvalidHeader

    wai-extra Network.Wai.Middleware.ValidateHeaders

    Description of an invalid header.

  9. InvalidHeader :: Header -> InvalidHeaderReason -> InvalidHeader

    wai-extra Network.Wai.Middleware.ValidateHeaders

    No documentation available.

  10. data InvalidHeaderReason

    wai-extra Network.Wai.Middleware.ValidateHeaders

    Reasons a header might be invalid.

Page 161 of many | Previous | Next