wai-request-spec-0.8.5.1: 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

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

Required parameter from the environment and apply a function to it

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

Optional parameter from the environment and apply a function to it

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

Required header from the environment and apply a function to it

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

Optional header from the environment and 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