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.
formatAsJSONWithHeaders :: OutputFormatterWithDetailsAndHeaderswai-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.
module Network.Wai.Middleware.
StripHeaders No documentation available.
stripHeader :: ByteString -> Response -> Responsewai-extra Network.Wai.Middleware.StripHeaders No documentation available.
stripHeaderIf :: ByteString -> (Request -> Bool) -> Middlewarewai-extra Network.Wai.Middleware.StripHeaders If the request satisifes the provided predicate, strip headers matching the provided header name. Since 3.0.8
stripHeaders :: [ByteString] -> Response -> Responsewai-extra Network.Wai.Middleware.StripHeaders No documentation available.
stripHeadersIf :: [ByteString] -> (Request -> Bool) -> Middlewarewai-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
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.
-
wai-extra Network.Wai.Middleware.ValidateHeaders Description of an invalid header.
InvalidHeader :: Header -> InvalidHeaderReason -> InvalidHeaderwai-extra Network.Wai.Middleware.ValidateHeaders No documentation available.
-
wai-extra Network.Wai.Middleware.ValidateHeaders Reasons a header might be invalid.