Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Data.Predicate
request :: HasRequest r => Predicate r f Request Source
query :: (HasQuery r, FromByteString a) => ByteString -> Predicate r Error a Source
header :: (HasHeaders r, FromByteString a) => HeaderName -> Predicate r Error a Source
hasHeader :: HasHeaders r => HeaderName -> Predicate r Error () Source
cookie :: (HasCookies r, FromByteString a) => ByteString -> Predicate r Error a Source
hasCookie :: HasCookies r => ByteString -> Predicate r Error () Source
accept :: HasHeaders r => ByteString -> ByteString -> Predicate r Error (Media (t :: Symbol) (s :: Symbol)) Source
contentType :: HasHeaders r => ByteString -> ByteString -> Predicate r Error (Media (t :: Symbol) (s :: Symbol)) Source
module Network.Wai.Predicate.Error