wai-routing-0.10: Declarative routing for WAI.

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Routing.Predicate

Description

Predicates which are specific to wai-routing. Please note that these can be freely combined with other predicates from wai-predicates.

Synopsis

Documentation

capture :: (HasCaptures r, FromByteString a) => ByteString -> Predicate r Error a Source

Request path parameters.

hasCapture :: HasCaptures r => ByteString -> Predicate r Error () Source

Request path parameters.

param :: (HasCaptures r, HasQuery r, FromByteString a) => ByteString -> Predicate r Error a Source

param "foo" is equivalent to query "foo" .|. capture "foo"