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

Data.HttpSpec.HttpTypes

Documentation

class IsHttp a => IsReq a whereSource

Methods

reqMethod :: a -> HttpMethodSource

reqUrl :: a -> HttpUrlSource

reqSetMethod :: HttpMethod -> a -> aSource

reqSetUrl :: HttpUrl -> a -> aSource

reqUrlPath :: a -> HttpPathSource

reqSetUrlPath :: HttpPath -> a -> aSource

reqAppendUrlPath :: HttpPath -> a -> aSource

reqAddUrlParam :: HttpParamName -> HttpParamValue -> a -> aSource

Instances

urlSplit :: Monad m => HttpUrl -> m (HttpPath, HttpUrl)Source

completeReq :: IsHttp req => req -> reqSource

completeRes :: IsHttp res => res -> resSource