wai-routing-0.5.3: Declarative routing for WAI.

Safe HaskellNone

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 aSource

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 aSource

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