purescheme-wai-routing-core-0.1.3.0: Simple Routing functions for Wai Applications
Safe HaskellNone
LanguageHaskell2010

Network.Wai.Routing.Purescheme.Core.Path

Synopsis

Documentation

path :: Text -> GenericApplication r -> GenericApplication r Source #

Match the remaining path

pathSegment :: Text -> GenericApplication r -> GenericApplication r Source #

Match the next path segment and remove from the request

pathVar :: FromUri a => (a -> GenericApplication r) -> GenericApplication r Source #

Use the next path segment as a variable and remove from the request

pathEnd :: GenericApplication r -> GenericApplication r Source #

Match if all the path has been consumed or the remaining is a trailing slash