wai-extra-3.0.22.0: Provides some basic WAI handlers and middleware.

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.StripHeaders

Synopsis

Documentation

stripHeaderIf :: ByteString -> (Request -> Bool) -> Middleware Source #

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

Since 3.0.8

stripHeadersIf :: [ByteString] -> (Request -> Bool) -> Middleware Source #

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