curryer-0.1.0.0: A simple HTTP server framework

Safe HaskellNone
LanguageHaskell2010

Web.Curryer.Types

Synopsis

Documentation

type App a = ReaderT ReqContext (ExceptT Response IO) a Source #

The main application definiton monad, sequence your route handlers and/or middleware in this monad

type Handler a = App a Source #

Handler is an alias for App, currently provided for semantic reasons, but the two may diverge in the future.

type Pattern = Text Source #

A regex pattern for route matching.

type Route = Text Source #

A route as Text

type HeaderMap = Map (CI Text) [Text] Source #

A map of case insensitive header names to all provided values for that header.

type MultiQueryMap = Map Text [Text] Source #

A map of query parameter names to all values provided for that parameter

type QueryMap = Map Text Text Source #

A map of query parameter names to the last-provided value for that parameter

type ContentType = Text Source #

A request or response's Content-Type value

data ReqContext Source #

Context provided when handling any request

Constructors

ReqContext