Safe Haskell | None |
---|---|
Language | Haskell2010 |
Predicate
s which are specific to wai-routing
.
Please note that these can be freely combined with other predicates from
wai-predicates
.
- capture :: (HasCaptures r, FromByteString a) => ByteString -> Predicate r Error a
- hasCapture :: HasCaptures r => ByteString -> Predicate r Error ()
- param :: (HasCaptures r, HasQuery r, FromByteString a) => ByteString -> Predicate r Error a
- hasParam :: (HasCaptures r, HasQuery r) => ByteString -> Predicate r Error ()
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"
hasParam :: (HasCaptures r, HasQuery r) => ByteString -> Predicate r Error () Source