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.

  1. newtype Header

    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

  2. Header :: Text -> Header

    dhall Dhall.Util

    No documentation available.

  3. data HeaderArg ftype

    servant-foreign Servant.Foreign

    No documentation available.

  4. HeaderArg :: Arg ftype -> HeaderArg ftype

    servant-foreign Servant.Foreign

    The name of the header and the foreign type of its value.

  5. data HeaderArg ftype

    servant-foreign Servant.Foreign.Internal

    No documentation available.

  6. HeaderArg :: Arg ftype -> HeaderArg ftype

    servant-foreign Servant.Foreign.Internal

    The name of the header and the foreign type of its value.

  7. data Header h

    tabular Text.Tabular

    No documentation available.

  8. Header :: h -> Header h

    tabular Text.Tabular

    No documentation available.

  9. Header :: a -> WithHeader a

    turtle Turtle.Prelude

    The first line with the header

  10. 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.

Page 95 of many | Previous | Next