wai-request-spec-0.9.1.0: Declarative request parsing

CopyrightAlej Cabrera 2015
LicenseBSD-3
Maintainercpp.cabrera@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.Wai.RequestSpec.Internal.Combinators

Description

 

Synopsis

Documentation

header :: (Text -> P a) -> CI Text -> Env -> P a Source

Required header, apply a function to it

headerM :: (Text -> P a) -> CI Text -> Env -> P (Maybe a) Source

Optional header, apply a function to it

qParam :: (Text -> P a) -> Text -> Env -> P a Source

Required query parameter, apply a function to it

qParamM :: (Text -> P a) -> Text -> Env -> P (Maybe a) Source

Optional query parameter, apply a function to it

fParam :: (Text -> P a) -> Text -> Env -> P a Source

Required form parameter, apply a function to it

fParamM :: (Text -> P a) -> Text -> Env -> P (Maybe a) Source

Optional form parameter, apply a function to it

int :: (Read a, Integral a) => Text -> P a Source

bool :: Text -> P Bool Source

float :: (Read a, Fractional a) => Text -> P a Source