httpspec-0.3.0.1: Specification of HTTP request/response generators and parsers

Data.HttpSpec

Documentation

type HttpSpec = Spec HttpErrSource

data WebComm Source

Instances

data WebIn Source

Constructors

WebIn 

Instances

data WebOut Source

Constructors

WebOut 

Instances

class HasReqSpec a whereSource

class HasResSpec a whereSource

rsXmlString :: Error e => PU a -> Spec e i o String -> Spec e i o aSource

rsXml :: Error e => XmlEncoding -> PU a -> Spec e i o ByteString -> Spec e i o aSource

rsValidXml :: Error e => XmlEncoding -> XmlValidator -> PU a -> Spec e i o ByteString -> Spec e i o aSource

rsWithBody :: (IsHttp i, IsHttp o) => (HttpSpec i o ByteString -> HttpSpec i o a) -> HttpSpec i o aSource

rsContentType :: (IsHttp i, IsHttp o) => String -> HttpSpec i o a -> HttpSpec i o aSource

rsEncodingFixed :: (Error e, Encoding enc) => enc -> Spec e i o ByteString -> Spec e i o StringSource

genReqOut :: Monad m => ReqSpec a -> HttpUrl -> a -> m ReqOutSource

genResOut :: Monad m => ResSpec a -> a -> m ResOutSource

parseReqIn :: MonadError ReqErr m => ReqSpec a -> ReqIn -> m aSource

parseResIn :: MonadError ReqErr m => ResSpec a -> ResIn -> m aSource

rsXmlBody :: (IsHttp i, IsHttp o) => PU a -> HttpSpec i o aSource