respond-0.2.0.0: process and route HTTP requests and generate responses on top of WAI

Safe HaskellNone
LanguageHaskell2010

Web.Respond.Types.Path

Contents

Description

tools for consuming request path

Synopsis

working with the path.

data PathConsumer Source

stores the path and how much of it has been consumed

Constructors

PathConsumer 

Fields

_pcConsumed :: Seq Text

the consumed part of the path.

_pcUnconsumed :: [Text]

the unconsumed part

mkPathConsumer :: [Text] -> PathConsumer Source

build a path consumer starting with nothing consumed

pcGetNext :: PathConsumer -> Maybe Text Source

get the next path element

pcConsumeNext :: PathConsumer -> PathConsumer Source

move forward in the path