Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- header :: forall a m. (DecodeEntity a, MonadThrow m) => ByteString -> Endpoint m a
- headerMaybe :: forall a m. (DecodeEntity a, MonadThrow m) => ByteString -> Endpoint m (Maybe a)
Documentation
header :: forall a m. (DecodeEntity a, MonadThrow m) => ByteString -> Endpoint m a Source #
Endpoint that tries to decode header name
from a request.
Always matches, but may throw an exception in case:
- Headers is not presented in the request
- There was a header decoding error
headerMaybe :: forall a m. (DecodeEntity a, MonadThrow m) => ByteString -> Endpoint m (Maybe a) Source #
Endpoint that tries to decode header name
from a request.
Always matches, but may throw an exception in case:
- There was a header decoding error