growler-0.6.0: A revised version of the scotty library that attempts to be simpler and more performant.

Safe HaskellNone
LanguageHaskell2010

Web.Growler.Types

Documentation

data RoutePatternResult Source

Constructors

RoutePatternResult 

Fields

routePatternResultName :: !Text
 
routePatternResultRequest :: !Request

The (potentially) updated request after consuming a portion of the path

routePatternResultMatchResult :: !MatchResult
 

class HasBodySource s a | s -> a where Source

Methods

bodySource :: Lens' s a Source

class HasHeaders s a | s -> a where Source

Methods

headers :: Lens' s a Source

class HasStatus s a | s -> a where Source

Methods

status :: Lens' s a Source

class HasMatchedPattern s a | s -> a where Source

class HasParams s a | s -> a where Source

Methods

params :: Lens' s a Source

class HasRequest s a | s -> a where Source

Methods

request :: Lens' s a Source

newtype GrowlerT m a Source

Constructors

GrowlerT 

Instances

data GrowlerConfig m Source

Constructors

GrowlerConfig 

Fields

growlerConfigNotFoundHandler :: HandlerT m ()

The 404 not found handler. If no route matches, then this handler will be evaluated.

growlerConfigErrorHandler :: SomeException -> HandlerT m ()

The uncaught exception handler. If an exception is thrown and not caught while trying to service a request, then this handler will be evaluated.