Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
dhall Dhall.Util A header corresponds to the leading comment at the top of a Dhall file. The header includes comment characters but is stripped of leading spaces and trailing newlines
-
dhall Dhall.Util No documentation available.
-
servant-foreign Servant.Foreign No documentation available.
HeaderArg :: Arg ftype -> HeaderArg ftypeservant-foreign Servant.Foreign The name of the header and the foreign type of its value.
-
servant-foreign Servant.Foreign.Internal No documentation available.
HeaderArg :: Arg ftype -> HeaderArg ftypeservant-foreign Servant.Foreign.Internal The name of the header and the foreign type of its value.
-
tabular Text.Tabular No documentation available.
-
tabular Text.Tabular No documentation available.
-
turtle Turtle.Prelude The first line with the header
module WebGear.Core.Trait.
Header Traits and middlewares to handle request and response headers. There are a number of ways to extract a header value from a request: The header middleware can extract a header value trait and invoke another handler. An error handler is invoked if the header is missing or the parsing fails. The optionalHeader middleware is similar but will not invoke the error handling in case the header is missing. Instead, the trait value will be set to Nothing in that case. The lenientHeader middleware requires the header to be present. But the trait attribute will be set to Left msg if an error occurs while parsing it to a Haskell value. Here msg will indicate the error in parsing. Finally, we have optionalLenientHeader which combines the behaviors of optionalHeader and lenientHeader. In this case, the header extraction never fails. Missing headers and parse errors are indicated in the trait attribute passed to next handler. A response header can be set using setHeader or setOptionalHeader arrows. They accept a witnessed response and a header value and sets the header in the response. You can generate an input response object using functions from WebGear.Core.Trait.Status module.